Move a SharePoint folder

Last published at: May 14th, 2024


Move a SharePoint folder


  • BaseURL – Base URL for your SharePoint site
  • selOAuthProvider  - Select OAuth Provider 
  • sourcefolderPath – Source Path of the folder to be moved
  • destinationfolderPath - Destination Path of the folder to be moved
  • resultJson – Store result in Variable or Global 


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



Let’s build and execute the spMoveFolderDef example.          

  • Create a new definition called “spMoveFolderDef”
  • Select the definition and click the “design” button
  • Let’s define variables called “spmovefolder, click on the “start” step and select the “define variables” button
  • Enter “spmovefolder” for the name of the variable, select “String” as the data type and click the “add” button.
  • Drag a spMoveFolder step to the canvas
  • Connect the dots between the Start and spMoveFolder step

  • Click on the “spMoveFolder” 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 will start and moves the folder.