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

Access Denied Host Header Sharepoint 2010 Windows Server 2008 R2