cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ISO-Doug
Helper I
Helper I

Trigger when new mail arrives (V3)

I have set up a flow that triggers when a new mail arrives in a folder on my inbox. It must match a string in the subject line as well as the "To" address. The To address is outside the organization and there is a bug with this flow and the workaround is to set up an expression to evaluate.

 

I want to write an expression that will match the correct email address. Will this expression work?

 

@equals(triggerBody()?['To'],'Philip.Matarese@ngc.com'),'Philip.Matarese@ngc.com')
1 ACCEPTED SOLUTION

Accepted Solutions
ISO-Doug
Helper I
Helper I

Adding the trigger condition solved my problem.

 

@equals(triggerBody()?['toRecipients'],'name@company.com')

View solution in original post

3 REPLIES 3
efialttes
Super User
Super User

Hi!

I am afraid the sintaxis is wrong.

"It must match a string in the subject line"

Which string you need to match?

THanx!



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!



I have it set to match on the subject line, but I also need to match on the To email field.

ISO-Doug
Helper I
Helper I

Adding the trigger condition solved my problem.

 

@equals(triggerBody()?['toRecipients'],'name@company.com')

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (3,132)