Thursday, December 19, 2019

Renaming SharePoint Folder using Microsoft Flows

Use Cases:
 ·        Rename a specific SharePoint Folder (Hard- coded folder names)
 ·        Rename a SharePoint Folder- Folder path and names can be dynamic.


Use Case 1:
1.      In Actions, select "Send an HTTP request to SharePoint"
2.      Enter the below details:
Site Address: Select your site address from the list.
Method: POST
Uri: _api/web/GetFolderByServerRelativeUrl('LibraryTitle/CurrentFolderName')//ListItemAllFields
Body: {
Title :"New Name of Folder"
FileLeafRef':"New Name of Folder"

Use Case 2:

The flow trigger is when a SharePoint file is created.
The output contains the Folder path which can be directly used  in the Uri of Rename the folder action as below:
In the above example, I have used the combination of a calculated output and variable of SharePoint. You can modify and enter any name as per your requirement.

Sample Output:

No comments:

Post a Comment

Close Quote When DocuSign Envelope is Completed Using Power Automate

  Introduction: When your CRM and DocuSign are not connected, yet you wish to automate Closing Quote and saving your file in SharePoint, yo...