langsem
(Langsem)
August 7, 2020, 7:06am
1
Anyone has any idea of how I can format this into the body of uipath?
Its a json and its expecting this format on the server side
{
“dateOfIncident”: “2020-08-06T11:37:14.027Z”,
“placeOfIncident”: “Oslo”,
“cause”: “Steinsprut”,
“mileage”: 600,
“mileageUnit”: “km”,
“jobType”: “Repair/Windshield/SideWindow/RearWindow/PanoramicSunroof/Misc”,
“contactPerson”: “string”,
“contact”: {
“name”: “string”,
“phoneNumber”: “string”,
“address”: “string”,
“postalCode”: “string”,
“postalArea”: “string”,
“email”: “string”,
“organizationNumber”: “string”,
“externalReference”: “string”
},
“wear”: “Low/Medium/High”,
“tradeIn”: true
}
When writing/parsing that json object:
(jsonObj).tostring(newtonsoft.json.formatting.indented)
1 Like
langsem
(Langsem)
August 7, 2020, 10:22am
3
hm. the text above are the one i want into a https post request in uipath. So in the body i want the text. But it has to be that syntax on the endpoint
rrkadari
(R@Kadari)
August 7, 2020, 11:20am
4
Try like below
“{”“MessageRequestHeader”“:”“”“,
““AppServer””:”+“”+“”“”+AppServer+“”“”+“,
““VersionId””:”“4180"”,
““TransactionDateTime””:“+”“+”“”“+dateTime+”“”“+”,
““DeviceType””:““TAB””,
““StoreId””:“+”“+”“”“+storeId+”“”“+”,
““StoreState””:““AR””}
1 Like
system
(system)
Closed
August 10, 2020, 11:21am
5
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.