web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

Teams flow trouble

(0) ShareShare
ReportReport
Posted on by 18

Hi,

 

I am trying to setup a flow that will send a notification to a Teams chat, if a message in a different Teams chat goes 5 minutes without a reaction to that message. I setup the below flow, and the flow will send a notification to the chat group every single time even if the message is reacted to. Does anyone know what I should change in the condition? "Contains" does not work in the condition, it errors out. However, "equals to" does work, but again, all messages into that chat channel send a notification to the other chat group even if they are reacted to. In the contains condition I have tried in the first parameter message, message body, message from user, and has not made a difference. Below if my flow. Currently, the condition is setup for "message from user" is equal to "message reaction". 

pbrown_0-1663351442264.png

 

Categories:
I have the same question (0)
  • v-xiaochen-msft Profile Picture
    on at

    Hi @pbrown ,

     

    I did a sample for you.

    vxiaochenmsft_0-1663568024999.png

    vxiaochenmsft_1-1663568056218.png

     

    Best Regards,

    Wearsky

  • pbrown Profile Picture
    18 on at

    @v-xiaochen-msft thank you so much for putting this together! What do you recommend putting for the "message" in the "get message details" section? I have tried message body content and it fails, and I tried message id and it does not fail, but nothing happens. It also failed at condition 2 depending on the dynamic content I chose for get message details. 

     

     

    pbrown_0-1663610003658.png

     

  • v-xiaochen-msft Profile Picture
    on at

    Hi @pbrown ,

     

    I used 'Message id' dynamic content from the trigger.

    Could you share some screenshots?

     

    Best Regards,

    Wearsky

  • pbrown Profile Picture
    18 on at

    @v-xiaochen-msft  thank you for letting me know. I added this as the dynamic content and here is the error message I get:

    "Unable to process template language expressions for action 'Condition_2' at line '0' and column '0': 'The template language function 'length' expects its parameter to be an array or a string. The provided value is of type 'Null'. Please see https://aka.ms/logicexpressions#length for usage details.'."


    Screenshots below showing where it failed:

    pbrown_0-1663692642653.png

     

     

    pbrown_1-1663692674293.png



    Here it is setup just like you entered originally:

     

    pbrown_3-1663692789055.png

     

  • v-xiaochen-msft Profile Picture
    on at

    Hi @pbrown ,

     

    Sorry my bad.

    Please modify the condition parameter.

    vxiaochenmsft_0-1663724718419.png

     

    Best Regards,

    Wearsky

  • pbrown Profile Picture
    18 on at

    @v-xiaochen-msft  Thank you so much for your time on this one!  I tried this, and I am getting an error, becuase I do not have dynamic content available for "Reactions". My dynamic content for reactions is only "Message reactions" in the first condition option. When I select this, it opens a "Apply to each" where I have this message reactions option as well as a "Message reactions Item". When I choose "Message reactions" in the condition, it opens up a "Message List" dynamic content in the apply to each, see screen shots below. 

    pbrown_2-1663777609197.png

     




    Here is the error path that I received. 

    pbrown_0-1663777389972.png

     

     

    pbrown_1-1663777411606.png

     

  • v-xiaochen-msft Profile Picture
    on at

    Hi @pbrown ,

     

    The dynamic content comes from action 'Get message details'.

    vxiaochenmsft_0-1663810393881.png

    Could you check it again?

     

    Best Regards,

    Wearsky

     

  • pbrown Profile Picture
    18 on at

    @v-xiaochen-msft thank you so much for your continued support. I really do appreciate you. 

     

    OK, after following your last step, I do get reactions as an option in the 2nd condition. Now, that flow does run successfully, however, every message that I send in the channel that triggers the flow will post a notification of that message in the other channel if I react to it or not. So, instead of only posting a message when there is no reaction within a time frame, it posts a message every time regardless of a reaction. Here is the whole flow below step by step. 


    pbrown_0-1663866619793.png

     

    pbrown_1-1663866665959.png




    pbrown_2-1663866723151.png





    Any ideas why it is sending a notification every time?

  • v-xiaochen-msft Profile Picture
    on at

    Hi @pbrown ,

     

    I checked your flow run history and I found that you set the delay action to 10 seconds.

    vxiaochenmsft_0-1663897241023.png

     

    In my flow screenshot, I set it to 5 minutes.

     

    Besides, the trigger you are using is the polling trigger. It can't actually be triggered immediately when a user adds a message. This is the limitation of polling trigger. 

    vxiaochenmsft_1-1663897705868.png

    That is, after the user adds a message to the channel, the flow will be triggered after 3 minutes at the latest.

    So the time of 'Get message details' is executed is between the 5th minute and the 8th minute after the user added the message. 

    Hopefully that makes sense.

     

    Best Regards,

    Wearsky

  • pbrown Profile Picture
    18 on at

    @v-xiaochen-msft Thank you for your continued support. I set the delay time to 10 seconds so I could quickly test it. I changed it to 5 minutes and still get the same result. Whether or not a message gets a reaction, it still posts to the other channel. I am starting to think this is going to be a limitation with Teams and Power Automate at this time. I appreciate all of your support!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard