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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Rename a file on share...
Power Automate
Unanswered

Rename a file on sharepoint

(0) ShareShare
ReportReport
Posted on by

I have the following problem:

I have a list on sharepoint (called ListA) with the following data in it:

Procedure Number

Product

Filename

Filename created

123456

Testproduct

123456_theFilename.pdf

Yes

458725

Testproduct2

458725_theFilename.pdf

No

 

And I also have a sharepoint library with different files in it that are all named like this:

123456.pdf

458725.pdf

 

Now I want to create a flow that changes the name from 123456.pdf to 123456_theFilename.pd once the Yes/No column in the list is changed from No to Yes. Now I think I know how to trigger the flow. I used the following:

Capture_1.JPG

Now hoe do I do the rest?

I searched various tips and forums and I figured at the moment there is no 'elegant' way to change a file name.

You have to create a new file and delete the old one as I understand it.

But how do I make sure that I change only the file with the name corresponding to the procedure number?

I tried the following but it didn't seem to work.

Capture_2.JPG

 

Also I am having trouble with changing the file name...

 

Can anyone help me with this?

 

Thanks in advance! 🙂

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,858 Most Valuable Professional on at

    Hi @Anonymous ,

     

    After your trigger check the flag is Yes. If yes then create a new file, delete the old file.  You can get the old file name from your new filename format (123456_theFilename.pdf) by using a split function. 

     

    If you need any further help in this please let me know.

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up.

     

    Thanks

  • Verified answer
    v-alzhan-msft Profile Picture
    on at

    Hi @Anonymous ,

     

    Please refer to screenshot below to create the flow:

    1.png2.png

     

     

    Best regards,

    Alice       

     

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

  • Community Power Platform Member Profile Picture
    on at

    That you! That works really well 🙂

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 463 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 427 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard