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 / Save email attachments...
Power Automate
Unanswered

Save email attachments to SharePoint and add date attachment received in file name

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Trying to Save email attachments to SharePoint from a daily report with the addition of date of attachment received in the title of the file saved. The current process works but always has the same name of file which overwrites the old reports.

Categories:
I have the same question (0)
  • DeepakS Profile Picture
    2,301 Most Valuable Professional on at

    Hi,

    You can use following expression to add date to the attachment name :

     Replace abc.pdf with attachment name you are getting:

     

    replace('abc.pdf','.',concat(formatDateTime(utcNow(),'MM-dd-yyyy'),'.'))

     

    Regards,

    Deepak S

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I have done as suggested however the file arrives unreadable. Please see below. Am I doing something wrong?

    HarveyPowell_4-1640879856781.png

     

    HarveyPowell_1-1640879265430.png

     

    Error I get online:

     

    HarveyPowell_5-1640879877539.png

    Error I get desktop: 

     

    HarveyPowell_6-1640879983100.png

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I have done as suggested however the file arrives unreadable. Please see below. Am I doing something wrong?

    HarveyPowell_7-1640880123547.png

     

     

    HarveyPowell_8-1640880123630.png

     

     

    Error I get online:

     

    HarveyPowell_9-1640880123643.png

     

    Error I get desktop: 

     

    HarveyPowell_10-1640880123567.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

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 550

#2
Valantis Profile Picture

Valantis 390

#3
11manish Profile Picture

11manish 348

Last 30 days Overall leaderboard