
Announcements
Hello everyone,
I’m currently working on a flow in Power Automate and I’m having some trouble. I need to change the naming of folders inside a SharePoint Online library. The folders are currently named as “[Number].”, and I need to rename them to “0[Number].”.
The location of these folders is /sites/TestChangeLibrary/level0/level1, and I only need to rename the folders at level 1.
Hi @Creanathan
See below
Above TestDocLib is my document library and FolderA/FolderB/FolderC are my sub-directories.
Under the Body I am renaming Folder C to Test1
Here are the parameters
_api/web/GetFolderByServerRelativeUrl('TestDocLib/FolderA/FolderB/FolderC')/ListItemAllFields
Under the header
{
"If-Match": "*",
"X-HTTP-Method": "MERGE",
"Accept": "Application/json;odata-verbose"
}
Under the body
{
"Title": "Test1",
"FileLeafRef": "Test1"
}