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 / Approval Process - Att...
Power Automate
Unanswered

Approval Process - Attachment Checking PDF invoice

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello, everyone,

 

I want to build an invoice approval process. This process should pick up all incoming e-mails in a shared mailbox and then check the attachments to see whether the file name ends in PDF. If so, a file should be created in Sharepoint. If not, an email or teams message should be created ("failure report").

 

The problem is: For example, images in the sender's signature (company logo, advertising banner, etc.) are recognized by the Flow / Power automat as an attachment and so too often a "false report" is created. I only want a message if no PDF is attached directly as an attachment or if the PDF file is attached to an email attached to the email.

 

 

Scheme:

 

When a new email arrives in a shared mailbox [DEPRECATED] (Outlook)

->

Apply to each: Select an output from previous steps: "Attachments"

->

Condition: Attachments name ends with ".pdf"

-> If yes: Create file (Sharepoint)
-> If no: Post a message in a chat or channel (Teams), for example "Error message".

"Condition end"

->

Flag email (V2) Outlook: complete

->

Move email (V2) Outlook: Folder "done"

"End of Flow"

 

Can you help me? Thanks a lot!

 

Greeting from Germany

Philipp

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Complete flowComplete flow

     

     

    "Apply to each" and "condition""Apply to each" and "condition"

  • eric-cheng Profile Picture
    5,171 on at

    Hi @Anonymous ,

     

    You can use a combination of image file extension and image size to filter out email signature images.

     

    Here is a previous post with instructions.

     

    --------------------------------------------------------------------------
    If I have answered your question, please mark my post as a solution
    If you have found my response helpful, please give it a thumbs up

    Connect on LinkedIn

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @eric-cheng ,

     

    thank you. But I don't think that solves the whole problem. It works with e. g. DOCX-attachments, but the flow doesn't recognize an e-mail as an attachment.

     

    PhilippSVG_0-1633442505111.png

     

    I got a Teams-chat if there is an .DOCX-attachment or Excel attachment, but there is no Teams-Chat with the Mail-attachment (e-mail in an e-mail). I hope you understand:

     

    PhilippSVG_1-1633442722941.png

     

    EDIT: What is the profit of the filter "Image size"? Didn't understand that too 😞

     

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 552

#2
Valantis Profile Picture

Valantis 388

#3
11manish Profile Picture

11manish 375

Last 30 days Overall leaderboard