4

I am constructing a REST API call in a SharePoint Designer workflow, to rename a file in a library.

I'm using the Call HTTP Web Service action with the POST method, and I've set this to the API URL (https://example.sharepoint.com/_api/web/whatever...) and request contains my request headers (Content-type: application/json, amongst others):

Call this HTTP web service

However, I'm not sure where to put the dictionary that contains my JSON request body. Should it go in the request headers, and if so what should I name it? If not then where should I put it?

  • Just a comment for those ones who visit this page because of its title. Unforunately, you are restreicted to dictionaries (that means JSON formatted data in the body) when sending POST requests via the Call HTTP Web Service action of SPD 2013 WFs. If you have a SOAP WS, or some kind of legacy web "API", that requires simple key - value pairs in the POST request body, than you have bad luck. – pholpar Jul 31 '17 at 9:54
4

After Googling 'body' rather than 'payload' (as per my original question title) I found this blog post linked from a MSDN thread.

It says that you need to select Advanced Properties from the ribbon, and set the RequestHeaders and RequestContent options explicitly.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.