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 :
Power Automate - Building Flows
Answered

Save pdf only email attachment to OneDrive with 2 conditions

(0) ShareShare
ReportReport
Posted on by 19

Hi all,

This should be straight forward but it's' not doing what it's meant to do.

I'd like to save only pdf attachments from email to onedrive where body of email has certain words (eg invoice, RCTI....)

The big picture is saving invoices, statements, RCTI pdf attachments that come in on email to a onedrive folder.

However, it's still saving jpeg, png from peoples signatures on email etc.

Also, is there a way to only add date stamp to the file name instead of "Received" which includes the time as well and makes for a very lengthy file name?

Help please!  Many thanks 🙂

 

dcc77_3-1656019847696.png

 

dcc77_2-1656019718570.png

 

I have the same question (0)
  • dcc77 Profile Picture
    19 on at
    Re: Save pdf only email attachment to OneDrive with 2 conditions

    Anyone??

  • Verified answer
    v-jefferni Profile Picture
    on at
    Re: Save pdf only email attachment to OneDrive with 2 conditions

    Hi @dcc77 ,

     

    The logic should be as follows:

    vjefferni_0-1656322232815.png

     

    In order to add time stamp as the file name, you can leverage the expression of utcNow()/Today() for the file name property of Create file action.

    vjefferni_1-1656322489733.png

     

    Hope this helps.

     

    Best regards,

  • dcc77 Profile Picture
    19 on at
    Re: Save pdf only email attachment to OneDrive with 2 conditions

    Thanks very much v-jefferni!!  Greatly appreciated!!  It worked 🙂

     

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…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 797 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 425 Moderator

#3
developerAJ Profile Picture

developerAJ 319

Last 30 days Overall leaderboard