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 : AOkTtaKYKoQcgR42bGIPJ/
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

I have the same question (0)
  • 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,519 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Tom Macfarlan – Community Spotlight

We are honored to recognize Tom Macfarlan as our Community Spotlight for October…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 707 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 499 Moderator

#3
chiaraalina Profile Picture

chiaraalina 312

Last 30 days Overall leaderboard
Loading complete