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".
if you haven't already solved this, I believe you may want to use a different expression to determine whether or not a reaction has occurred. https://powerusers.microsoft.com/t5/Building-Flows/Is-the-Reactions-output-from-Get-Message-Details-action-working/m-p/2038159?search-action-id=215310759463&search-result-uid=2038159
for my condition I uses string(outputs('Get_message_details')?['body/reactions']) and then checked to see if that string contained "like"
@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!
Hi @pbrown ,
I checked your flow run history and I found that you set the delay action to 10 seconds.
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.
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
@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.
Any ideas why it is sending a notification every time?
Hi @pbrown ,
The dynamic content comes from action 'Get message details'.
Could you check it again?
Best Regards,
Wearsky
@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.
Here is the error path that I received.
@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:
Here it is setup just like you entered originally:
Hi @pbrown ,
I used 'Message id' dynamic content from the trigger.
Could you share some screenshots?
Best Regards,
Wearsky
@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.
Michael E. Gernaey
497
Super User 2025 Season 1
David_MA
436
Super User 2025 Season 1
Riyaz_riz11
244
Super User 2025 Season 1