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 / Flow to Rename local f...
Power Automate
Unanswered

Flow to Rename local file using modified date

(0) ShareShare
ReportReport
Posted on by 209

Would really appreciate some help.

I have built a flow which runs on a schedule.

When it runs, I have it renaming file on local server using:

@{concat(formatdatetime(addHours(utcNow(),10),'yyyyMMdd'),'_filename.zip')}

However, I want to use the modified date of the file(s) instead of the UTCNOW() function.

But, alas, my knowledge is lacking and I am unable to find the secret to doing this.


If anyone could give me a suggestion regarding how to do this, or even an example, it would be GREATLY appreciated.flow.jpg

Categories:
I have the same question (0)
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @kevinsray 

     

    The last modified time for the file is available in the dynamic content and you can use it in your expression too: 

     

    ffe.PNG

     

    Modified expression: 

    concat(formatdatetime(addHours(items('Apply_to_each')?['LastModified'],10),'yyyyMMdd'),'_filename.zip')

     

    Hope this Helps!

    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!

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 251 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 239

#3
Expiscornovus Profile Picture

Expiscornovus 220 Most Valuable Professional

Last 30 days Overall leaderboard