Upload data file through webhooks integration

I have a web form created in wordpress using elementor plugin. I would like to upload a file to the via this wordpress form but I can't find documentation for this. Any help would be much appreciated.

Like 0




We do not currently support file transfers, but we will register a request for a description of the documentation if possible.

If you have any further questions, please send them in response. We will be happy to help.

Thank you for contacting Creatio Support!

It's not very straight forward, but it is possible. Basically, you'd need to encode the file as a Base64 string, then transfer it as a string value to the webhook. Once received decode the Base64 string back to a file byte array to save as an attachment somewhere. 

If this is coming from a web form, you can use Javascript's FileReader to convert the file to a base64 string. See https://stackoverflow.com/questions/36280818/how-to-convert-file-to-base64-in-javascript

Then send the value as a string to the webhook. You could add a process to trigger on record added of your entity. Then decode the string to a byte array. See https://learn.microsoft.com/en-us/dotnet/api/system.convert.frombase64string

Then save the byte array as an attachment on the record. See https://academy.creatio.com/docs/8.x/dev/development-on-creatio-platform/back-end-development/api-for-file-management/examples/file-management-examples


Show all comments