Rename a SharePoint folder

Use this step to rename a SharePoint folder.

Last published at: August 1st, 2023

spRenameFolder Step


This step renames a SharePoint folder.



  • BaseURL – Base URL for your SharePoint site
  • selOAuthProvider  - select OAuth Provider 
  • folderPath –Path of the folder to be renamed
  • renamedTo – Rename folder to 
  • resultJson – Store result in Variable or Global 



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






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

  • Create a new definition called “spRenameFolderDef” 
  • Select the definition and click the “design” button
  • Drag a “spRenameFolder” step to the canvas
  • Connect the dots between the start and “spRenameFolder” step
  • Define a variable/global to store the file path and the result after execution
  • Click the "spRenameFolder" step to configure its "Settings" properties. Provide a name to the step. Provide the description. Provide a base URL to the SharePoint site. Select the SharePoint provider from the dropdown list. Provide the folder path to be renamed. 


  • 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. Render the process instance. The workflow should start, and the folder should be renamed.