I am using expressions in a JSON Body in the HTTP Request Node. When I click into the Expression it appears to resolve as expected. However, when I send the payload to the https://webhook.site/ it clearly shows the expression is not transmitting the resolved payload but rather [object Object]. When I send the payload to the intended API endpoint, it results in a JSON Not Valid error. I have read through other posts on this topic but I am unclear as to how to get around this issue.
What is the error message (if any)?
When I send the payload to the intended API endpoint, it results in a JSON Not Valid error.
I have updated my original post with the info. I was getting a 403 error when pasting my workflow using </> so I just pasted it raw to get around the error.
@chadgriff1 , please share your workflow to see the actual setup of your HTTP Request node and input data you are trying to utilize in the body of the request. For that, you have to copy the wokflow and paste it in between the pair of triple backticks ``` (each ``` has to be on its own line).
Is there a way around a 403 Error when pasting the workflow. I attempted to paste it within the ‘</>’ area and received a 403 error each time. I pasted it outside of the ‘</>’ area to get past it but it was removed from my post
The 403 error typically means unauthorized access or forbidden action. I’m not sure why it happens to you. Perhaps you are trying to paste something else rather than a workflow? If you just type a plain text in between ```, do you get the same error?
That actually contradict the output you showed as the expected one as instead of an array you get string representation of an array (array vs string). That is, instead of "Ordered_Items": [...] you get "Ordered_Items": "[...]".
@ihortom Apologies…I really thought what I listed initially was what I needed to satisfy the Zoho CRM end point I am trying to hit. What you suggested was really similar to what I already had in place. I could see in the HTTP Request Node the output would resolve to [object Object] in the Expression preview (i.e. without clicking into the Expression builder). When I added the .toJsonString() method I could see in the preview it would resolve as I needed it to. When I tested using the proper end point, it worked! FYI…I am building a workflow to update Sales Orders within Zoho CRM to align with any changes made in my inventory management system. The endpoint I am using to update the Sales Order subform is https://zohoapis.com/crm/v6/Sales_Orders.