Use JSON In HTTP Request Activity

Hi,

Please I need your help, when I use the Postman app to connect to REST API it is working fine with me, but when I used the HTTP request activity I got an error.

I using the following body in the Postman {“TESTUSERNAME_Input”:{
“InputParameters”:{
“X_USER_NAME”:“Test”
}
}
}

and I use the following body with HTTP request activity
“”“{”“TESTUSERNAME_Input”“:”“{”“InputParameters”“:”“{”“X_USER_NAME”“:”“Test”“}”“}”“}”“”

Hi @aalaghbari

Try this as json body

“{“TESTUSERNAME_Input”:{
“InputParameters”:{
“X_USER_NAME”:“Test”
}
}
}”

Regards

Nived N :robot:

Happy Automation :relaxed::relaxed::relaxed::relaxed:

Hi @aalaghbari

Just paste the json body in the .txt file and read the .txt file and store in string varible and specify that string variable in the json property

Hi @NIVED_NAMBIAR,

Thanks a lot for your help, I did the steps but I got the same error.

Hi @aalaghbari

Can u tell what error u are getting?

Hi @NIVED_NAMBIAR
Please find the screenshot below
image

Hello,
Check out this very fast simple VB.NET that create JSON in this video:

Thanks,
Cristian