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 / How to Add Date and Ti...
Power Automate
Unanswered

How to Add Date and Time of Email arrival to File Name in my Flow?

(0) ShareShare
ReportReport
Posted on by 7

Hi,

 

I currently have a flow that creates a file from an attachment I receive in an email. I would like to add the date and time that the email arrived to the end of the file name. Does anyone know what specific expression I could use to do this? Any help would be appreciated. Thank you!

Categories:
  • ScottShearer Profile Picture
    25,331 Most Valuable Professional on at

    @kylajones13 

    You could us the concat() expression to combine the filename with the Received time from Dynamic properties.  Received time gives both the date and time.  You might also want to use the formatDateTime() expression to change how the date and time is displayed.

    Let me know if you need an example.

     

     

  • kylajones13 Profile Picture
    7 on at

    Right now I have concat('filename','.',first(skip(split(items('Apply_to_each')?['Name'],'.), 1))). How can I combine Received Time in there before the file type? Having a hard time understanding the coding in it, lol. 

     

    Thank you!

  • ScottShearer Profile Picture
    25,331 Most Valuable Professional on at

    @kylajones13 

    See my example below.

    I am using a few compose actions as a proxy for the data that you'll see in Dynamic properties - the concept is the same.  Also, I find that breaking things out into a couple of actions makes everything easier to understand and maintain.  That's why I have the split() in it's own compose action.

    Also, I could have added a formatDateTime() expression inside of my Received Compose action to make the date and time more "friendly".

    Take a look and let me know if you need more help.

    image.pngimage.png

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 289

#2
11manish Profile Picture

11manish 288 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 125

Last 30 days Overall leaderboard