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 / Flow to update documen...
Power Automate
Unanswered

Flow to update document file name

(1) ShareShare
ReportReport
Posted on by

Hello,

 

I'm fairly new to Flow and am trying to update a document name.

 

i created a document library where i have a custom template. (excel file), when i open my template the name is Book1.xlsx by default. i don't want my users to change the name manually.I'd like the file name to be "XYZ-DateTime" but cannot figure out how to do it with the options available in flow.

 

I tried several things but nothing works. the latest one is

 

flow.png

 

Does anyone have an idea how to do this ?

 

Thanks a lot for your help !

Cedric

Categories:
I have the same question (0)
  • v-yamao-msft Profile Picture
    on at

    Hi Kaddrik,

     

    How is your file created? Do your users upload the files to library directly?

     

    I am afraid that the flow you created might be not able to meet your needs. I have a flow on my side, please try if it will work for you.

     

    The flow is triggered by “When an email is arrived, create file in SharePoint”, then add a Compose action to get the DateTime.

    4.PNG

     

    Please try it on your side to see if it will work for you.

     

     

    Best regards,
    Mabel Mao

  • Community Power Platform Member Profile Picture
    on at

    Hello Mabel,

     

    thanks for your answer.

     

    the document is a template set as a content type. the users do not need to upload a document. they just click on "new" and they choose the template.

     

    oh !? the compose action...i didn't think about this !! 🙂 I will test and let you know.

     

    thanks,

    Cedric

  • Community Power Platform Member Profile Picture
    on at

    Hello !

     

    hmm..this doesn't seem to be working.

     

    One of my colleagues,may have find a solution to it yesterday. i will try to see with him...

     

    Thanks anyway !

    Cedric 

  • Community Power Platform Member Profile Picture
    on at

    Hi Kaddrik

    Did you find a solution for this?

    I have the exact same need like you...

    regards Jesper

  • Community Power Platform Member Profile Picture
    on at

    Hi Jesper,

     

    no sorry, i didn't find a solution for this 😞

     

    Regards,

    Cedric

  • 4l3X Profile Picture
    2 on at
    Hello, do you try with the trigger « when a document properties is modify » and update the content properties ?
  • Community Power Platform Member Profile Picture
    on at

    I'm able to rename a sp doc library file by using REST:

     

    select "Send an HTTP request to SharePoint" action,

     

    then follow the below article to fill up the header and body of the HTTP REST POST request: (I used option 1 with success)

     

    https://sharepoint.stackexchange.com/questions/168014/change-filename-of-existing-file-on-sharepoint-document-library-using-rest-api

     

  • ck25415 Profile Picture
    294 on at

    @Anonymous

     

    Could you explain how you did it, I am trying to update the file name in a document library with the text in the title field.

     

    Thanks,

  • Community Power Platform Member Profile Picture
    on at

    hi, here is a screenshot of my rename process Flow, this is working brilliantly for me so should work for you as well

     

    REST call to rename in FLOW.JPG

     

  • Community Power Platform Member Profile Picture
    on at

    Hi @Anonymous 

    Can you explain what is the ShortFolderName variable and how do you obtain it? Thanks

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 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard