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
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (1,879)