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
Microsoft
Microsoft

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
Microsoft
Microsoft

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

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (1,502)