cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Gwena
New Member

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 II
Super User II

@Gwena 

 

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 II
Super User II

@Gwena 

 

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

yashkamdar
Solution Sage
Solution Sage

Hello @Gwena ,

 

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 !!

 

 

 

 

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!

 

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

 

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,602)