Skip to main content

Notifications

Power Automate - General Discussion
Unanswered

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

(0) ShareShare
ReportReport
Posted on by

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.

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

    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

     

     

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

    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

     

     

  • DeepakS Profile Picture
    DeepakS 2,301 on at
    Re: Save email attachments to SharePoint and add date attachment received in file name

    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

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

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

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,526

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,907

Leaderboard