Hi all,
I am using an API to trigger my robot (with {url}/odata/Jobs/UiPath.Server.Configuration.OData.StartJobs). The API gives the robot a few input arguments. These arguments are subsequently entered into a SAP system, and a datatable is given which I scrape.
I convert the datatable to a json string using the assign activity: jsonOutput = JsonConvert.SerializeObject(dt). When using the log message activity, I get the following output message in UiPath Studio:
[{"Product":"2402427","Quantity":"1233","Unit":"EA","Description":"XXX","ShipFrom":"XXX","Available":"1.233","On":"05.11.2021"},{"Product":"2402427","Quantity":"32","Unit":"EA","Description":"XXX","ShipFrom":"XXX","Available":"32","On":"05.11.2021"},{"Product":"2402427","Quantity":"235","Unit":"EA","Description":"XXX","ShipFrom":"XXX","Available":"BO","On":""}]",
This format is perfect for what I need. However, when I have this as an output argument for the automation in UiPath Studio, this is what I receive in the API (in Postman):
As you can see, every backslash becomes three instead. All I want is for the output to be in the same format as the UiPath gives off as a message. Does anyone have a resolution to this?
Any help is highly appreciated, many thanks!