Skip to main content

Hello,

I'm trying to use the web connection to send a json body, but i'm not able to get it going. BEfore losing more time with it, i went back to using the http connector, where it works as expected. 

I saw this topic: 
Web Connection Parameter | Thinkwise Community
 

Is this still an issue, or is there something else going on? 

Hi Tiago,

I think something else is going on because that issue is about binary files and you are trying to sent a JSON body.

Can you show us how you configured the parameters and how you configured the body of the endpoint?

What might be wrong that is if you have the body configured for instance with a single variable, for instance {my_json}, and you are already provoding the JSON in the correct format, in that case, the my_json input parameter should be configured with “Pre-Processing”: None.

If set to Auto, or JSON - it is treated as a parameter for a JSON field and will be escaped - making it an invalid JSON body when it was already provided as a correct JSON value, due to being escaped again.

We will update the documentation about the different Pre-processing options.

Can you let us know if that was the case?

If it is not the case, can you try with providing a hardcoded json value in the SF - to see if that works?


Reply