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

Community site session details

Session Id : fNfTpjgpsJiADzbzFzaRiF
Power Automate - Building Flows
Answered

How to add the datestamp at the end of a filename using Create File action

Like (0) ShareShare
ReportReport
Posted on 14 Jun 2023 21:36:15 by 523

Hi!

 

How do I add the datestamp at the end of the filename using Create File Action?

 

This will be running on daily basis so I need an expression that will add the datestamp at the end of the file name . 

 

So if it runs today, it would be Merf_06132023.csv

if runs tomorrow, then Merf_06142023.csv

 

(I am testing the flow for now before I move it to the triggered flow)

 

CreateaFileNamewithDatestamp.PNG

 

Thank you,

Holly

  • Holly_CMS Profile Picture
    523 on 14 Jun 2023 at 22:16:43
    Re: How to add the datestamp at the end of a filename using Create File action

    Thank YOU! 🙂

  • Verified answer
    wskinnermctc Profile Picture
    6,517 Moderator on 14 Jun 2023 at 22:08:50
    Re: How to add the datestamp at the end of a filename using Create File action

    All you need to do is get the current time and then format it into 'MMddyyyy' and put it into your file name.

     

    I have two examples below that are basically the same. One example has all of the steps using flow actions and the other example just uses an expression.

    Using the flow steps looks like a lot of extra items, but it is easier to follow or modify if you aren't accustomed to using expressions.

     

    FileName DateFileName DateFileName Date ResultsFileName Date ResultsFileName Date ExpressionFileName Date Expression

     

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

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!

Loading complete