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 / Only process PDF attac...
Power Automate
Answered

Only process PDF attachment

(0) ShareShare
ReportReport
Posted on by 245

I have this flow that can only process 1 PDF attachment.  At this point in the flow, I've already checked if it has an attachment and if there are more than 1 PDF attachment.  The last check I'm doing is to process if the attachment is a PDF or not, the first one, but in the following example, the email had a PDF attachment, but the Get Attachments V2 listed the email background and the signature logo, both IsInline: True as first and second, so my flow condition saw jpeg and the condition result was false and it shouldn't have been (because the only true attachment WAS a PDF).  I only want the Get Attachments to get the actual attachments and not IsInline.  Any support is appreciated.  Thank you!

 

2023-11-13 06_45_40-Settings.png2023-11-13 06_37_59-Inbox - subplans@ecasd.us - Outlook.png

 

 

2023-11-13 06_37_59-Inbox - subplans@ecasd.us - Outlook.png
2023-11-13 06_45_40-Settings.png
Categories:
I have the same question (0)
  • Manish Solanki Profile Picture
    15,167 Moderator on at

    Hi @apettit 

     

    Recently, I shared a solution for the similar problem. Please check out if that is helpful for you:

    Solved: Exclude Image Attachments from Extract - Power Platform Community (microsoft.com)

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

  • Srini007 Profile Picture
    3,467 Super User 2026 Season 1 on at

    Hi @apettit 

     

    Check below post for your reference

     

    https://powerusers.microsoft.com/t5/Building-Flows/get-ONLY-PDF-attachement-from-email-and-save-to-Sharepoint/td-p/586786

     

    If you find this reply helpful, please consider giving it a LIKE AND

    If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION

     

    Regards,

    Srini

  • Verified answer
    apettit Profile Picture
    245 on at

    @Srini007 @ManishSolanki So, I have another filter array to begin the whole thing to only get PDF attachments (below) that reads like this: @And(equals(item()?['isInline'], false),endswith(item()?['name'], '.pdf')) that I reference in another condition by using: length(body('Filter_array')).  Could I use the filter array body to check if the true attachment is a pdf? (I think I can, but wondered what you think?)  So, in Get Attachment (V2) 2, for Attachment ID, could I use the length(body('Filter_array')) and if it fails, send an email person saying, 'you need to do different' and if it succeeds, continue with the rest of my flow?

     

    2023-11-13 09_42_03-Settings.png2023-11-13 09_37_41-Edit your flow _ Power Automate - Adam Pettit - Microsoft​ Edge Beta.png2023-11-13 09_37_24-Edit your flow _ Power Automate - Adam Pettit - Microsoft​ Edge Beta.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
Valantis Profile Picture

Valantis 641

#2
Vish WR Profile Picture

Vish WR 640

#3
Haque Profile Picture

Haque 495

Last 30 days Overall leaderboard