Im trying to use a Nintex Call HTTP web service to update a html file in a document library.
Per Microsofts https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/working-with-folders-and-files-with-rest im using
url: http://site url/_api/web/GetFileByServerRelativeUrl('/Folder Name/file name')/$value
body: "Contents of file."
Headers: Authorization: "Bearer " + accessToken
X-RequestDigest: form digest value
content-length:length of post body
The request is working however I am having an issue with the format of the request body. In the request body I simply need to pass in the raw html and nothing else. However due to the Call HTTP web service "request content" only accepting dictionary values I am having difficulty doing this.
This is what is getting put into the file after the request
All I want the requst to put in there is Hello World.
The O365 action works but in the content if we use workflow variables.it neglects the content and throws the exception " This file is empty and needs content to be uploaded. "
Has anyone found a workarounf for that