How to pass the value in HTTP Request instead of using body , we need to pass the value through Parameter in"post" Method…?
Welcome to our UiPath Forum!
You can use the Parameters parameter of the HTTP Request activity:
It is quite straightforward:
How to pass variables in it it is not working for me
You should simply replace the
"yourString" with your String variable.
Some examples of the errors you are getting could help us dive deeper into your issue
As you mentioned here by am sharing the error which am facing, Please find the details in the image
“error”: “Unsupported Media Type”,
“message”: “Content type ‘application/x-www-form-urlencoded;charset=UTF-8’ not supported”,
Could you also show how your HTTP Request is configured in both Studio and a working example using some other tool (i.e. Postman)?
This would help a lot.
Hi @loginerror ,
Could you try passing the JSON in the Body field of the HTTP Request activity?
It accepts input as string, so you will have to escape all double quotes, like so:
There are other ways to pass this JSON input to this field, such as:
- Load it from a text file as is (no need to escape quotes) using the Read Text File activity
- Create it from scratch, more on that here.