invoke an external API to send the record's data and the uploaded File (Image)
解決
Hi All,
I have a use case where the user fills out and submits the form along with a File upload (Image). Now the record is saved in the HubSpot with the Uploaded File (Image) as a property.
Problem: Now I have to sync this record's data (along with the Uploaded Image) to an External system.
The solution can be: Use a Custom Coded action to read the data and the Image file in the workflow's Webhook to call an external API.
Could you please let me know if this is a feasible solution? If not, please suggest a better approach.
Yes, you could utilize the Custom Coded Action in a workflow to be triggered when someone submits a form in HubSpot.
In this Custom Coded Action you could retrieve the contact's data via the Contacts API and then utilize the external API to pass that retrieved data into your destination.
Files are only referenced in the contact property and are actually uploaded to the file manager during form submission, so you may also need to utilize the Files API to retrieve the file. If that file upload is set to private, then you will need to utilize the signed URL endpoint to access it.
Hope this helps!
✔️ Did this post help answer your query? Help the community by marking it as a solution.