Update SharePoint Folder name using Power Automate

We can rename the SharePoint folder using Power automate. We can update the SharePoint document library folder using the steps below.

On Power Automate, add new Action, Send HTTP request,

In the Send HTTP request, we can pass details as below,


Site Address: 
<<SharePoint Site Address>>

Method: "POST"
Uri: "_api/web/GetFolderByServerRelativeUrl('Shared Documents/<<OLD Folder Name>>')/ListItemAllFields"
Headers
  • If-Match: *
  • X-HTTP-Method: MERGE
  • Accept: Application/json;odata-verbose
Body: {
              "Title": "<<NEW FOLDER NAME TO BE UPDATED>>",
              "FileLeafRef": "<<NEW FOLDER NAME TO BE UPDATED>>"
            }


 

Comments

Popular posts from this blog

Linksys Wireless Connection Failure

The security validation for this page is invalid. Click Back in your Web

Power Apps toPower Automate Error - The input body for trigger 'manual' of type 'Request' did not match its schema definition , the input String does not validate against the date