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
Suggested answer

Only PDF attachments from Gmail

(0) ShareShare
ReportReport
Posted on by 2
Hello
I built a flow that uploads PDF attachments from a specific folder in Gmail to GOOGLE DRIVE. The problem is that every email with PDF attachments that arrives in this Gmail folder also contains another file, which is a signature file and is not a PDF and is also uploaded to DRIVE. I really don't want the signature files to be uploaded, I only want the PDF files to be uploaded. Where and how do I define this in the flow building process?
 
Thanks
I have the same question (0)
  • Suggested answer
    Mark Nanneman Profile Picture
    989 Super User 2025 Season 2 on at
    Only PDF attachments from Gmail
    Have you tried using a filter on the attachments property?  You could filter on item()?['ContentType'] contains pdf, or item()?['Name'] ends with .pdf

    E.g.
  • CU27121329-0 Profile Picture
    2 on at
    Only PDF attachments from Gmail
    Hello Mark Nanneman
    Thanks for responding.
    Its look great , how exactly do i find this section of PDF only filter array ? in which step ?
    I found "Filter barray" but not "Filter array PDF's Only"
     
    this is my current flow .. i just missing that step and its done..
     
     

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 788 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 452 Moderator

#3
developerAJ Profile Picture

developerAJ 302

Last 30 days Overall leaderboard