cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Power Automate: Rename Document Set

Hello everybody,

 

as the title explains, I am looking for a way to rename a document set with the process of renaming changing the relative server URL.

I know this has been asked before, but the solutions dont work 100% for me.

I have tried these solutions:

https://powerusers.microsoft.com/t5/Building-Flows/Renaming-a-SharePoint-Folder-or-Document-Set/td-p...

https://powerusers.microsoft.com/t5/Building-Flows/Renaming-a-SharePoint-Folder-or-Document-Set/m-p/...

 

Both solutions use a HTTP-Request to the REST-API and so do I :

_api/web/GetFolderByServerRelativeUrl('<ListName>/<SetName>')//ListItemAllFields (I have to use 2 / compared to the solutions)

The HTTP-Request itself is working, but it is not changing the name of the document set or its relative URL. I try to avoid the easy solution of copying the Document Set with another name and deleting the old one, because I want to take track of the versions. If I look in the APIs calls, I can see, that the title has changed but not its name, or its path.

 

Is there any possibility, that there is a REST-API call, that can archieve this?

 

 

 

Thanks!

 

1 ACCEPTED SOLUTION

Accepted Solutions
JohnAageAnderse
Memorable Member
Memorable Member

Hello @Anonymous 

 

I know it can be done as I am doing it in one of my flows. See the screenshot of the REST call that I am using. The folder (document set) name change updates the "FileLeafRef" property, which is the actual filename of the folder.

Flow.REST.rename folder.png

Kind regards, John

View solution in original post

2 REPLIES 2
JohnAageAnderse
Memorable Member
Memorable Member

Hello @Anonymous 

 

I know it can be done as I am doing it in one of my flows. See the screenshot of the REST call that I am using. The folder (document set) name change updates the "FileLeafRef" property, which is the actual filename of the folder.

Flow.REST.rename folder.png

Kind regards, John

View solution in original post

Anonymous
Not applicable

Hello @JohnAageAnderse ,

 

thank you very much! This helped me a lot.

 

Kind regards,

Max

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,831)