I am running into a strange problem and hoping someone can shed some light on it.
I am trying to create a line item using Workflows. This line item is to have an assocation to a deal. Below is a copy of my code with my parameters scrubbed.
I can run this code through the endpoints on the hubspot docs pages and it all works fine. However, when running it in workflows, the line item gets created but not associated.
I know the work around is just to run the associations api afterwards but I am wondering if I am using the line items api incorrectly.
This looks like an error with the HubSpot API client, looking at the logs for the token the client simply isnt sending the associations portion of the body:
I would recommend using axios as a work around, that way it stays as a single api call, you could do that by doing the following:
This looks like an error with the HubSpot API client, looking at the logs for the token the client simply isnt sending the associations portion of the body:
I would recommend using axios as a work around, that way it stays as a single api call, you could do that by doing the following: