Hello !
For my automation I need to create HTTP POST request which send a JSON into the request body.
This method ‘GetDeliveryNumberSuggestions’, will receive the JSON, and will deserialize it into a C# class.
But when I’m trying to do the same with UI Path, it’s not working. I’m reaching the endpoint but my string is always null. I’ve set double quote, simple quote, no quote… does ‘null’ also does to be quoted ?
Okay, finally the solution was to use a simple JsonConvert.SerializeObject(jsonText)…
To obtain data string like that :
“[{"ReceipNoteId": 0, "ReceiptNoteNumber": null, "DeliveryDate": null, "SiteId": 0, "SiteName":"AC0001", "SupplierName":"JohnDoe", "SupplierId": 0, "DeliveryNumber": null}]”