Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Testing a MS 365 Group New Emails: Saving PDF Attachments if Subject Line meets a condition

(0) ShareShare
ReportReport
Posted on by 7

Background:

I am trying to build a flow that will check new emails received into an MS Office 365 Group, and if 2x conditions are met, the flow will save the email's PDF attachments to SharePoint:

 

  1. If the Subject Line contains "Internal Use" and...
  2. If the email contains PDF attachments then save the PDF attachments to SharePoint

How far I've got:

I have been able to build a valid flow (i.e., Flow Checker was OK with it) which drills down to check if an Attachment and test to see if it's a PDF and if it is, then saving it to SharePoint.

 

flow.png

 

Where I need help:

  1. The existing flow doesn't work: despite being Flow Checker 'approved' the flow checks the Group (upon me sending it an email containing a PDF attachment and correct subject line as a test) and just doesn't complete. Is anyone able to see any obvious flaws in my flow and/or has suggestions on how to get this working properly?
  2. Expanding to flow to test the email's Subject Line: I haven't been able to triangulate how to test the subject line. I 'think' I need to utilize the "Get conversation thread" however would appreciate confirmation of this, and how I could integrate this into my flow.

Please let me know if I can elaborate on anything!

  • wtcf Profile Picture
    7 on at
    Re: Testing a MS 365 Group New Emails: Saving PDF Attachments if Subject Line meets a condition

    I have been able to get the flow working now (without the Subject line condition), which is as follows - 

    wtcf_0-1693369030063.png

     

    Is anyone able to help guide me with adding a condition that just tests a "post" Subject Line for the string "Internal Use"

     

    Thanks in advance!

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1