spCreateDocument Step

Use this step to create a new document on the Sharepoint site.

Last published at: July 31st, 2023

Description:

This step is used to create a new document on the SharePoint site

Inputs

  • BaseURL – BaseURL for ur Sharepoint site
  • selOAuthProvider  - select OAuth Provider 
  • SourceFilePath – Path of the source file to be uploadedl
  • destinationFilePath – Path to save the file in SharePoint site
  • resultJson – store result in Variable or Global
 

 

Returns

  • True – step executed successfully
  • False – step failed to execute 
 

 

Usage:

 

 

Example:

Let’s build and execute the “spCreateDocumentDef” example.          

  • Create a new definition called “spCreateDocumentDef” 
  • Select the definition and click the “design” button
  • Drag a “spCreateDocument” step from the toolbox
  • Connect the dots between the start and “spCreateDocument” step
  • Click on the “spCreateDocument” step to configure its “Settings” properties. Provide a name to the step. Provide a description. Select the oAuth provider from the dropdown list. Select oAuth provider dropdown values coming from connection menu oAuth setting need to be configure sharepoint oauth params and get authorization. Provide the source file name with application server path to be uploaded. 
  • Click on the “spCreateDocument” step to configure its “Settings” properties. Provide a file path to save the document on the SharePoint site. Provide a base URL for the SharePoint site. Provide a variable/global to store the result after execution. 
  • Save the process definition, create a new process instance and execute. The workflow will start and creates a document in the sharepoint folder.