cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Negi1984
Helper I
Helper I

Flow to trigger as soon as someone type specific text in TEAM channel

Hi All,

 

We have a Team Channel, where multiple user regular chat and for me only relevant info is to check if anybody type any reference with "BL_XXX_XXX".  

 

Can anybody suggest me if we can trigger email based on above mentioned condition ?

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Expiscornovus
Super User
Super User

Hi @Negi1984,

 

You could use a trigger condition with an expression which uses an indexof function. If the result of that function doesn't equal -1 you have a match. You could add this expression to the settings of a When a new channel message is added trigger action.

 

Below is an example of that configuration approach:

@not(equals(indexof(triggerOutputs()?['body/body/content'], 'BL_XXX_XXX'), -1))

 

whenanewchannelmessage_keywordfilterexpression.png

View solution in original post

1 REPLY 1
Expiscornovus
Super User
Super User

Hi @Negi1984,

 

You could use a trigger condition with an expression which uses an indexof function. If the result of that function doesn't equal -1 you have a match. You could add this expression to the settings of a When a new channel message is added trigger action.

 

Below is an example of that configuration approach:

@not(equals(indexof(triggerOutputs()?['body/body/content'], 'BL_XXX_XXX'), -1))

 

whenanewchannelmessage_keywordfilterexpression.png

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 (2,524)