cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dutt_v
Regular Visitor

Only processing emails coming from a certain adresss

Hello

 

Under "When a a new email arrives (V3)", in the "FROM" field I want to specify that the flow should only be run if an email comes from a certain ending address (ie: the value after the @ sign).

 

Example - I only want my flow to run if the FROM email is from "@hotmail.com".  

 

Is there some sort of a wildcard that I can use (like "*@hotmail.com")?

 

Thanks in advance for any assistance.

1 ACCEPTED SOLUTION

Accepted Solutions
MarconettiMarco
Super User
Super User

Hello @dutt_v ,

in the trigger conditions please add this expression:

 

 

@not(endsWith(triggerOutputs()?['body/from'],'@hotmail.com'))

 


 

If I have answered your question, please mark my post as Solved.
If you like my response, please give it a Thumbs Up.

BR,

Marco

View solution in original post

1 REPLY 1
MarconettiMarco
Super User
Super User

Hello @dutt_v ,

in the trigger conditions please add this expression:

 

 

@not(endsWith(triggerOutputs()?['body/from'],'@hotmail.com'))

 


 

If I have answered your question, please mark my post as Solved.
If you like my response, please give it a Thumbs Up.

BR,

Marco

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Users online (3,616)