Steps:
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
Headers:
Accept
|
application/json;odata=verbose
|
X-HTTP-Method
|
MERGE
|
If-Match
|
*
|
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:
Comments
Post a Comment