web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Renaming SharePoint fo...
Power Automate
Unanswered

Renaming SharePoint folders in multiple SharePoint document libraries

(0) ShareShare
ReportReport
Posted on by 6

We are using a SharePoint by creating individual document libraries dedicated to specific jobs.  Each of these document libraries has roughly the same folder structure having the same base folder structure, i.e. 01 Documents, 02 Photos, etc..  As out processes evolved we have seen the necessity to rename some of the base folders.  I don't see any clear way to automate going into each library, finding the specific folder(s) to rename (which are known), and renaming the folders.  How could this be accomplished as we have many existing libraries.  Similarly, would the same process be used to add any new, missing base folders that we are creating to older libraries?

Categories:
I have the same question (0)
  • Rhiassuring Profile Picture
    8,692 Moderator on at

    Are all of the libraries in the same site? 

    If so...  you can use the "Get All Lists & Libraries" action. 

     

    From there, you can use the names of the libraries to iterate through each, then use the "Get Items" to filter to your folders. There's a few ways to do this. How many folders do you need to rename? (Not as in, "there are 1000 of this folder", but like, we need to rename all of 01 Documents and 02 Photos to 01 Files and 02 Images...) 

    Just to give me an idea, to figure out the better way...

    The latter part of your question - yes, we can do that, and add it to this process.

  • MH-AG-23 Profile Picture
    6 on at

    Every library is on the same site.

     

    At the moment it is definitely one, possibly two folders to rename in each library.

  • Rhiassuring Profile Picture
    8,692 Moderator on at

    In that case, if there's only 2, I'd just use an Array for the expected name and the new name. You can build that, then iterate through using an "Apply to Each" and replace the old with the new, and adding the new if needed. 

    Does this explanation get you on the right path, or are you super new to PA?


  • MH-AG-23 Profile Picture
    6 on at

    I can see where this gets me.  I am fairly new to the PA environment.  I have made a couple of automations but have been struggling/spending a lot of time trying to figure out how to make this one work.  I appreciate the help thus far.  Let me see what I can do with the information you provided and I'll respond back if I'm continuing to struggle on this.

  • MH-AG-23 Profile Picture
    6 on at

    I've tried playing around to get to attempt to get it to work but I am at a roadblock.  I've posted a picture below to show where I've gotten to, but I am lost on how to isolate just the folders and then rename the folders since there is not option to rename as part of the standard code.

    MHAG23_0-1701703783180.png

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 630

#2
Valantis Profile Picture

Valantis 420

#3
11manish Profile Picture

11manish 350

Last 30 days Overall leaderboard