Skip to main content
Nintex Community Menu Bar

Hi there, I have a workflow that we have migrated from On Prem to 365, where we had an action to create a document in a document library from a SharePoint List Workflow.

 

With the create an Item action not supporting creating a black document in a a Document library and only a List, what is the best method of doing so now?

Hi ​@BenM365Stack 

You can use the Call a Sharepoint Web Service action to create the blank file.  If you configure it to use a POST to this endpoint:

https://{site_url}/_api/web/GetFolderByServerRelativeUrl('Folder Name')/Files/add(url='a.txt',overwrite=true)

then you can specify the Contents in the body for the call.


Reply