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 / Update file identifier...
Power Automate
Answered

Update file identifier - How to get the existing dynamic filename that is already in SP

(0) ShareShare
ReportReport
Posted on by 920 Super User 2024 Season 1

Hi,

 

I want to update an existing file in my SP.

 

 

wonka1234_1-1707926439684.png

 

how can i pickup the latest file in my SP life and use that as my file identifier?

 

Categories:
  • Verified answer
    v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @wonka1234 

    According to your description, you want to get the latest file name in your SharePoint. This is my test flow.

    vyueyunmsft_0-1707961002127.pngvyueyunmsft_1-1707961049906.png

    FileRef desc

    first(outputs('Get_files_(properties_only)')?['body/value'])?['{FilenameWithExtension}']
     

    If this reply can help you , you can click mark this reply as solution (Accept solution) which can help more people, thanks in advance! 

     

    Best Regards,

    Yueyun Zhang

     

     

     

  • wonka1234 Profile Picture
    920 Super User 2024 Season 1 on at

    @v-yueyun-msft thanks, seems to be working, but the expession used in your compose, does it go into subfolders of my getfiles? I only want it to search the parent level for excel files not the subfolders. Seems like it is picking up an excel in an archive folder within the parent library name.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 423

#2
11manish Profile Picture

11manish 308 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 177

Last 30 days Overall leaderboard