Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello Team,
i Trying to update data of sharepoint list
using Patch methode Trestclient , the scenario is like this :
TfixedFlowinput ==> twritejsonfield ==> trestclient
Inputschema is my json body
I have this issue message :
ID: 1
Response-Code: 400
Encoding: ISO-8859-1
Content-Type: application/json
Headers: {client-request-id=[adfe434c-9a8f-42bd-b4c0-82f7ca7bc46f], content-type=[application/json], Date=[Wed, 25 May 2022 11:10:14 GMT], request-id=[adfe434c-9a8f-42bd-b4c0-82f7ca7bc46f], Strict-Transport-Security=[max-age=31536000], transfer-encoding=[chunked], x-ms-ags-diagnostic=[{"ServerInfo":{"DataCenter":"North Europe","Slice":"E","Ring":"4","ScaleUnit":"005","RoleInstance":"DU6PEPF00002DCC"}}]}
Payload: {"error":{"code":"BadRequest","message":"Empty Payload. JSON content expected.","innerError":{"date":"2022-05-25T11:10:14","request-id":"adfe434c-9a8f-42bd-b4c0-82f7ca7bc46f","client-request-id":"adfe434c-9a8f-42bd-b4c0-82f7ca7bc46f"}}}
--------------------------------------
Thank s
Hello,
For your job equirement, please a tRest component instead of tRestClient
If you want to pass a json string to the web service, please change the data type of body column to String on tRestRequest.
Best regards
Sabrina