Renaming SharePoint Folder using Microsoft Flows
Introduction:
Using MS Flows, On any trigger, you can add the below action to rename the SharePoint folder.
Steps:
In Actions, select "Send an HTTP request to SharePoint"
Enter the below details:
Site Address: Select your site address from the list.
Method: POST
Uri: _api/web/GetFolderByServerRelativeUrl('LibraryTitle/CurrentFolderName')//ListItemAllFields
Headers:
Body: {
Title :"New Name of Folder"
FileLeafRef':"New Name of Folder"
}
The Folder Name in Uri and new folder names in body can be dynamic as per your requirement( Refer Screenshot below: the data here is taken directly from the trigger when file is created in SharePoint).
Sample Output:
Comments
Post a Comment