1

I am creating a SharePoint Designer Workflow 2013 where I add a file using REST api call. File gets added perfectly, however it goes empty. I want some content in that file, let's say "Test File Content".

<Site URL>_api/web/GetFolderByServerRelativeUrl('/Document Library')/Files/add(url='a.txt',overwrite=true)

Do I have to add something in the headers to have some content in that file? Please, do let me know if you have any suggestions.

Your Answer

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

Browse other questions tagged or ask your own question.