spRenameDocument Step
Description:
This step renames a SharePoint document.
Inputs
- BaseURL – BaseURL for ur Sharepoint site
- selOAuthProvider - select OAuth Provider
- documentPath –Path of the document to be renamed
- renamedTo – rename document to
- 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 “spRenameDocumentDef” example.
- Create a new definition called “spRenameDocumentDef”
- Select the definition and click the “design” button
- Drag a “spRenameDocument” step to the canvas
- Connect the dots between the start and “spRenameDocument” step
- Define a variable/global to store the file path and the result after execution
- Click on the "spRenameDocument" step to configure its "Settings" properties. Provide a name to the step. Provide a description. Provide a base URL for the SharePoint site. Select oAuth provider from the dropdown list. Select the document with folder path to be renamed.
- Click on the "spRenameDocument" step to configure its "Settings" properties. Provide the document new name. Provide the variable/global to store the result after execution.
- Save the process definition, create a new process instance and execute. The workflow should start and it should rename the document.