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 Platform Community / Forums / Power Automate / Flow fails when messag...
Power Automate
Unanswered

Flow fails when messages sent to “Get message details” are not in correct group

(0) ShareShare
ReportReport
Posted on by 8

I built a virtual board that monitors a group chat for a list of phrases and then updates an excel sheet to mark them as in or out of the office. Overall it works, except any message that is not in the specified group causes the flow to fail. 

 

Is there a way I could add another condition or filter so only the messages from the correct group make it to the Get message details action?

 

IMG_0229.jpeg

Categories:
I have the same question (0)
  • ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at

    Hi @YourPalMichael 

     

    Could you pls give some examples for the phrases you want to filter out?

     

    Thanks

  • YourPalMichael Profile Picture
    8 on at

    Hi @ManishSolanki! Thanks for your reply!

     

    I have the lists of phrases built out and working. My problem is that when I send/receive a message NOT in the assigned group chat, it causes the flow to fail at the “Get message details” step. But any message in the “CVN” group makes its way through the flow correctly and updates my excel sheet.

     

    It almost feels like a “task failed successfully!” situation, but I’d still like to filter out the non-CVN messages if possible.

  • Verified answer
    ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at

    Hi @YourPalMichael 

     

    One possible solution is you could add trigger condition to allow execution of flow when message is posted in a particular group and would restrict the execution for different group.

     

    Here is the example:

    Firstly, get the conversation Id of the CVN group from the previous successful flow run instance. You need to copy it for use in next step:

    ManishSolanki_0-1704773774991.png

    Next, edit the flow. Click ellipses menu (...) & select "Settings" from sub menu. Scroll down to 'Trigger condition' and add the below condition. Press Done to save the changes:

    ManishSolanki_1-1704773917822.pngManishSolanki_2-1704773963768.png

    @equals(first(triggerOutputs()?['body/value'])?['conversationId'], '19:55b25f53c48444e29ba1e122235c96b9@thread.v2')

    Pls replace the actual conversation Id in the above expression.

     

    Save changes & retest the flow. Now, flow will execute only when messages are posted in "CVN" group but not for messages posted in other groups.

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

  • YourPalMichael Profile Picture
    8 on at

    This absolutely solves the problem, thank you so much for your help!

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 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard