cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JhonatanOB1993
Helper II
Helper II

When email arrive

Good afternoo, everyone.

De you know if is there a way to use the trigger "When an email arrives V3" and put it as a filter that one user or someone else sends it? It happens that there are two people who could send the email and, only one of them sends it every weekday, then I would like to know if in the filter "From:" I could place it to be sent by Person1 or Person2.

Thnaks for read it

Best regards,

Jhonatan Ora
1 ACCEPTED SOLUTION

Accepted Solutions
efialttes
Super User
Super User

Hi!

You can do it either by adding a 'Compose' action block just after your trigger, and configuring two condition rules linked by Or operator. So in your false branch you can add a 'Terminate' action block. Not very efficient, but it should work

You can also activate 'trigger conditions' functionality, mucho more efficient, more info on this second approach in this article:

https://www.timlinenterprises.com/microsoft-power-automate-flow-trigger-conditions/

 

So, assuming you opt for the second approach, you can add the following expression:

 

 

@or(equals(triggerBody()?['From'],'alice@acme.com'),equals(triggerBody()?['From'],'bob@acme.com'))

 

 

Not in my laptop, unable to test



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post

2 REPLIES 2
efialttes
Super User
Super User

Hi!

You can do it either by adding a 'Compose' action block just after your trigger, and configuring two condition rules linked by Or operator. So in your false branch you can add a 'Terminate' action block. Not very efficient, but it should work

You can also activate 'trigger conditions' functionality, mucho more efficient, more info on this second approach in this article:

https://www.timlinenterprises.com/microsoft-power-automate-flow-trigger-conditions/

 

So, assuming you opt for the second approach, you can add the following expression:

 

 

@or(equals(triggerBody()?['From'],'alice@acme.com'),equals(triggerBody()?['From'],'bob@acme.com'))

 

 

Not in my laptop, unable to test



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



Hi, @efialttes !

Thanks a lot for your answer! It helped me!

 

Best regards!

 

Jhonatan Ora

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Users online (1,332)