web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Testing a MS 365 Group...
Power Automate
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!

Categories:
I have the same question (0)
  • wtcf Profile Picture
    7 on at

    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard