Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

How to save the file name to specific format?

(0) ShareShare
ReportReport
Posted on by 7

Hi All

 

Thank you for trying to help me first

currently, I have a flow which is saving the Email attachment into Sharepoint folder

i would like to save the file name in specific format like....

Consol Details MMM YYYY.csv

not sure if anyone could help me?

 

Example as below, thank you.

Ericwhvhkg_0-1666267316789.png

 

  • Ericwhvhkg Profile Picture
    7 on at
    Re: How to save the file name to specific format?

    Hi @StretchFredrik 

     

    it is work, thank you!

    at the end, I write it like below to remove the "-" between Month and Year, thank you so much!!

    Ericwhvhkg_0-1666268723340.png

     

    formatDateTime(utcNow(),'MMM yyyy')

    Ericwhvhkg_1-1666268778099.png

     

  • Heartholme Profile Picture
    1,278 Super User 2024 Season 1 on at
    Re: How to save the file name to specific format?

    HI @Ericwhvhkg 

     

    Your file name should be attachment name: 

     

    Heartholme_0-1666268102528.png

     

    This will include the exstention to save your file in the correct format: 

    Heartholme_1-1666268161623.png

     

    { If my post answered your question, please Accept it as a solution ✔ }
    { This will in turn help others find solutions to similar questions }

    Best Regards
    Heartholme

  • Verified answer
    StretchFredrik Profile Picture
    3,085 Super User 2025 Season 1 on at
    Re: How to save the file name to specific format?

    You could try adding the following expression after the first part to get todays month and year.

     

    formatDateTime(utcNow(),'MM-yyyy')

     

    So it will look like Consol Detail {Expression Above}.csv

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

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!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1