Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
DBLONDEL1643728674
Contributor III
Contributor III

PATCH methode to update SharepointList with ms graph API

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

0695b00000RiW5EAAV.png

Labels (1)
1 Reply
Anonymous
Not applicable

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