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

Email content to a document library (MOSS 2007)

Power Apps - Restricting the Text Box only Whole Numbers

Features - "You are not authorized to view this page" - Error 403