cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mjregil
New Member

Teams Message Trigger Condition for IMPORTANT! / high

I've spent the last few days trying to figure out how to run a flow only when a message is posted with 'IMPORTANT!' and I just figured it out with the help of a few other articles.  I didn't find anything else exactly like this, so I thought I'd share here.  It's actually very simple.  

 

Overall flow:

mjregil_0-1626361887225.png

 

 Click the menu for "When a new channel message is added..." and choose "Settings"

mjregil_1-1626361402531.png

 

Find "Trigger Conditions" and click "Add"

mjregil_2-1626361435694.png

Add the following

 

 

@equals(triggerOutputs()?['body/importance'], 'high')

 

 

 

 Click "Save" and do whatever else you want with the flow.

 

It might take minutes for the flow to actaully work.  I've seen other posts that indicate this can be slowed based on the number of API calls your tennant is making and your subsciption level.  I've seen it take seconds and I've seen it take 20 minutes.  ¯\_(ツ)_/¯

 

Enjoy!

1 ACCEPTED SOLUTION

Accepted Solutions
AnthonyAmador
Community Support
Community Support

Hi @mjregil 

 

Thanks for sharing your findings and helping others with your solution. 

Consider marking the thread as solved to help others find it more easily.

 

Cheers.

View solution in original post

1 REPLY 1
AnthonyAmador
Community Support
Community Support

Hi @mjregil 

 

Thanks for sharing your findings and helping others with your solution. 

Consider marking the thread as solved to help others find it more easily.

 

Cheers.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

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

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (2,973)