Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Renaming a Sharepoint folder

(0) ShareShare
ReportReport
Posted on by

Hello.

 

I've seen others raise the issue of renaming a folder but havent seen a successful clear resolution to renaming.

 

My Use Case is that i have a sharepoint list for development enhancements which when a new item is added i want to copy a template folder (which contains subfolders and template word documents, and place the copied folder in a folder where the folder name is equal to the ID of the list item.

I have got as far as follows from other suggestions. Could anyone help?

Capture.JPG

  • Community Power Platform Member Profile Picture
    on at
    Re: Renaming a Sharepoint folder

    Hi Barry. Thank you for responding (been on holiday so apols for the delay). I'm still not clear on a few things. Could you confirm?

     

    1. The copy file screen you show highlights a png being copied. How could it be set up to copy folder X to be folder Xv2?

    2. What does library name mean in the Post option? I cant add this or do i need a custom syntax?

     

    This is the logic of my flow so far:

    1. SHAREPOINT Trigger - When a new item is created in list Development Register 

    2. SHAREPOINT - Copy folder at /Shared Documents/Internal - Process/DevelopmentTemplate and store in destination /Shared Documents/Test Delivery Folder.......so that would mean creation of folder at /Shared Documents/Test Delivery Folder/DevelopmentTemplate

    3. I now want to rename the new folder to have the filename of the ID of the list entry in point 1.

    Note: the Development template holds sub folders related to documentation and which contain template word docs etc.

     

    I couldnt seem to get your COPY File option to work as a folder, and if it were to copy a file within the folder and then rename that folder i guess i couldnt have the sub folders i need? Is that correct.

     

    Thanks in advance!

    Mat

  • v-bacao-msft Profile Picture
    on at
    Re: Renaming a Sharepoint folder

    Hi @Anonymous ,

     

    If you want to update the name of the copied folder, you could treat it as a file.

    Please refer to the screenshot below to configure Flow.

    19.PNG

    Please check the similar thread and see if it helps:

    https://powerusers.microsoft.com/t5/Building-Flows/Renaming-a-File-in-SharePoint-Online/td-p/176708

     

    Best Regards,

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1