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

Exclusion based on subject. When email arrives

is it possible to filter out from a flow, emails which subject contains "RE:" or "FW:"? If yes, how?

 

I have a flow that creates a new row in a list for every email sent to a specific FROM address. I want to avoid that replies and forwards also create an item in the list.

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
v-litu-msft
Community Support
Community Support

Hi @rcabral2,

 

Here is an action named Condition could approach that, you could make the condition to if Subject contains "RE:" or "FW:", do nothing, or create item:

Screenshot 2021-04-07 092557.jpg

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-litu-msft
Community Support
Community Support

Hi @rcabral2,

 

Here is an action named Condition could approach that, you could make the condition to if Subject contains "RE:" or "FW:", do nothing, or create item:

Screenshot 2021-04-07 092557.jpg

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

annajhaveri
Super User
Super User

@rcabral2 in addition to @v-litu-msft  response you can also stop the flow to trigger for emails which have subject containing RE: or FW: using following trigger condition.

 

@and(
not(contains(toLower(triggerOutputs()?['body/subject']),string('re:'))),
not(startswith(toLower(triggerOutputs()?['body/subject']),'fw:'))
)

 You can configure trigger condition by going to Settings of trigger and provide above expression under Trigger conditions

annajhaveri_0-1617778524522.png

 

Regards,
Anna Jhaveri

If I have answered your question, please mark the post as Solved to help other users to identify the correct answer
If you like my response, please give it a Thumbs Up.
rcabral2
New Member

Hi, both ways work. I went ahead with the condition just because it's simpler to troubleshoot by someone that did not build it. Thank you

@rcabral2  sounds good, the only advantage of using trigger condition is that it saves a flow run.

Regards,
Anna Jhaveri

If I have answered your question, please mark the post as Solved to help other users to identify the correct answer
If you like my response, please give it a Thumbs Up.

Helpful resources

Announcements
MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (56,075)