Hello, I'm trying to create custom workflow action. I need to send enrolled records "hs_object_id" and internal value of a selected input property "propertyName". I'm attaching the payload that I'm sending via postman. Can anyone please guide me here how I can send those data to the endpoint. Thanks
Hey, @MTonmoy9👋 Thanks for your question. Can you tell our community more about where the issue is? Are you getting back specific errors when testing with Postman or when you try using this as a custom-coded workflow action?
I have a few suggestions that may help give our community members more info to troubleshoot with:
Adjust the propertyName type from object_coordinates to a relevant type like "string".
Ensure the function script properly closes all parentheses and matches your intended logic. (it looks lie you have some missing parentheses)
Access the enrolled record’s hs_object_id using event.object.objectId.
Debug the workflow using HubSpot’s logs and external testing tools like Postman.
Ensure that your actionUrl properly accepts the payload and returns output fields as expected.
Thank you for the additional information. — Jaycee