cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

How to select an e-mail with subject line containing a specific bit of text (not the exact subject line)

Hi, I've built a flow based on the template "Save Office 365 email attachments to a FTP server". It was very simple to amend but I need to select only e-mails with a subject line containing the expression "SMB top-100...".

Now setting the subject line to "SMB top-100" doesn't work (probably because this is never the exact subject line)

Does anyone know what I need to fill in to get the trigger right. Would *SMB top-100* work voor instance or what can I use to indicate that this is just a piece of the subject line? 

Thank you in advance for your help!

 

screenshot of my flowscreenshot of my flow

1 ACCEPTED SOLUTION

Accepted Solutions
Hardesh15
Super User
Super User

@Anonymous 

 

You can store subject of an email in compose action. Then use condition block with condition-contains.if condition matches, perform your rest of the action if not terminate at that point.

 

Thanks

Hardesh

View solution in original post

4 REPLIES 4
Hardesh15
Super User
Super User

@Anonymous 

 

You can store subject of an email in compose action. Then use condition block with condition-contains.if condition matches, perform your rest of the action if not terminate at that point.

 

Thanks

Hardesh

yashkamdar
Solution Sage
Solution Sage

Hello @Anonymous ,

 

Please try this out. This worked for me.

 

Here is the logic that I designed -

 

yashkamdar_2-1597434720718.png

 

 

 

 

 

 

 

Here is the test -

 

Email sent with Subject SMB top-100 contained in it

 

yashkamdar_3-1597434861820.png

 

 

Flow iteration Successful-

 

yashkamdar_5-1597434942590.png

 

 

If this answer solves your issue please do mark this as accepted or answered. That will help me too !!

 

 

 

 

Anonymous
Not applicable

Thanks @yashkamdar ! I think the solution you propose is not quite what I needed but I used your trick to build a condition in between the "receive e-mail" And "save attachment to FTP". The flow is not doing what I need it to do. Thanks for your help!

 

Anonymous
Not applicable

@Hardesh15 I've done just that and it works perfectly! Thanks for your help

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Users online (1,131)