Description:
This step is used to create a new document on the SharePoint site.
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 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 the SharePoint provider dropdown value coming from the connection menu. The oAuth setting needs to be configured with Sharepoint oAuth params to get authorization. Provide the source file name and the application server path to be uploaded. 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.
- The “Logging” setting configuration is necessary for documentation and also measures the workflow progress and the percent complete. This is achieved by configuring the step state and percent fields individually, as shown in the images below. Configure the “Logging” using the following properties.
- Save the process definition, create a new process instance, and execute. The process shall create a document in the SharePoint folder.