spRenameFolder Step

Last published at: July 27th, 2024

Description:

Rename a SharePoint folder

Inputs

  • 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 

Returns

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

Usage:

Example:

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.