cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TiagoFreire
Continued Contributor
Continued Contributor

Outlook 365 - trigger when email does NOT match sender possible?

Hi, 

 

I have a Flow that automatically triggers on incoming email from clients, to start a new service request. 
I would like to prevent it from starting new processes however, by filtering out internal emails. 

 

The best approach would be to use a negative match on the trigger, however I don't kow if it is possible. 

 

e.g.: 

 

when a new email arrives

 

From: !example@contoso.com; NOT(*@fabrikam.com)

 

Would it work, to restrict execution at the trigger level with a NOT MATCH? 

1 ACCEPTED SOLUTION

Accepted Solutions
yashag2255
Dual Super User II
Dual Super User II

Hey @TiagoFreire 

 

I did it like this: 

 

 

Go to settings of the trigger by clicking the ... on the top right. rr3.PNG

Click add trigger conditions and use the expression: 

@not(equals(last(split(triggerBody()?['From'],'@')),'domain.com'))

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

 

View solution in original post

2 REPLIES 2
yashag2255
Dual Super User II
Dual Super User II

Hey @TiagoFreire 

 

I did it like this: 

 

 

Go to settings of the trigger by clicking the ... on the top right. rr3.PNG

Click add trigger conditions and use the expression: 

@not(equals(last(split(triggerBody()?['From'],'@')),'domain.com'))

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

 

View solution in original post

v-alzhan-msft
Community Support
Community Support

Hi @TiagoFreire ,

 

Have you take a try with @yashag2255 's solution?

@yashag2255 's solution is great, please take a try and let me know if your problem could be solved.

 

Best regards,

Alice       

 

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

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

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.

Users online (1,541)