Hello,
I’m currently working on a workflow to send a Closed-Won Deal from HubSpot to Dynamics 365 CE, and I’ve run into an issue with the final step of the process.
Here’s the current workflow setup:
Step 1: Trigger – When a Deal is marked as Closed Won in HubSpot
Step 2: Action – Create an Order in Dynamics 365 CE
Step 3: Action – Find Associations: Search the Deal object for associated line_item(s)
Step 4: Action – Loop through each associated Line Item
Step 5: Action – Retrieve Line Item details (within loop)
Step 6: Action – Send API POST request with the following:
-
Headers:
-
accept: application/json
-
content-type: application/json
-
format: json
-
Body (sample format):
{
"productid": [value from HubSpot Step 5],
// Additional values following the same structure as productid
}
The initial steps appear to be functioning correctly, but the final API request is not completing as expected. I suspect the issue might lie within the loop or the structure of the POST request.
Any guidance or suggestions you can offer would be greatly appreciated.
Thank you in advance!