Rename a SharePoint folder

Last published at: May 14th, 2024


Rename 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 “spRenameFolder”
  • Select the definition and click the “design” button
  • Let’s define variables called “spRenameFolder”, click on the “start” step and select the “define variables” button

  • Click on the “spRenameFolder” step to configure its properties
  • Configure the following values for the properties as shown on the below graphic
  • Select oAuth provider dropdown values coming from connection menu oAuth setting need to be configure SharePoint oAuth params and get authorization. 
  • Save the workflow definition
  • Create a workflow instance and execute
  • Workflow should start and it should rename the folder.