Issue with sending http post request with json body

Hi Team,

I am trying to send a UiPath http post request with json body, i am getting the status code as 200, but the problem is that data is not reflecting to the end point. And the same is working perfectly with the postman.
This is the original Json Data with postman.
{
“works”: [
{
“externalId”: “21999333”,
“workSpecExternalId”: “7754”,
“ff_Work_Name”: “Test Postman”,
“ff_Employee”: “211”,
“ff_Crown_Paints_Entity”: “A”,
“ff_Supplier_Name”: “Crown”,
“ff_Supplier_Number”: “07654”,
“ff_Supplier_Deliver_Note_Number”: “777432”,
“ff_Truck_Number”: “Ap06Kenya”,
“ff_Supplier_PO_Number”: “6000”
}
]
}

This what i am trying to provide while with uipath.

“{‘works’:[{‘externalId’:‘21999101’,‘workSpecExternalId’:‘7754’,‘ff_Work_Name’:‘UiPath’,‘ff_Employee’:’ ',‘ff_Crown_Paints_Entity’:‘A’,‘ff_Supplier_Name’:‘Crown SupplyTestUiPath’,‘ff_Supplier_Number’:‘07699’,‘ff_Supplier_Deliver_Note_Number’:‘129999’,‘ff_Truck_Number’:‘Ap06DG1234’,‘ff_Supplier_PO_Number’:‘6000’}]}”

can any one please help me resolve the issue.

Regards,
Pankaj

I don’t understand the issue. Both json bodies are the same structure and they both have status code 200. Are you confident the issue is UiPath? I would expect a different status code if there was an issue with your uipath post call. Could you please provide more detail about what you mean by:

I am trying to send a UiPath http post request with json body, i am getting the status code as 200, but the problem is that data is not reflecting to the end point

Can you try reading the body from a text file and passing it to the activity?

If you run the activity (not the preview), please check the message and the result you are getting

Hi @zwils0, I understand your concern but the same thing is working while i am sending through the postman, and with uipath getting status code as 200 but it is not reflecting the data to the end point.

Regards,
Pankaj

Hi @HareeshMR, Great reading from file is working in my case, Thanks a lot.

Regards,
Pankaj

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.