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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Flow is sending multip...
Power Automate
Answered

Flow is sending multiple adaptive cards in a loop

(0) ShareShare
ReportReport
Posted on by 3

I created a simple Flow to watch for keywords in a Teams channel and reply with an adaptive card. It works but it doesn't just post once, it continues to post the adaptive card until I turn off the Flow. 

 

I only have 2 conditions, When keywords are mentioned (trigger), and Post adaptive card and wait for a response.

 

Departed_0-1657748722160.png

 

Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,828 Most Valuable Professional on at

    Hi @Departed,

     

    I see the text of your adaptive card you are posting also contains the keyword Project. I would suggest building in a check to ignore messages which are posted by flow bot to trigger the flow.

     

    You could use a Get message details action and check if the from field is from an application instead of a user.

     

    Below is an example

     

    Expression for MessageId of first value which is used in the Get Message Details action

    first(triggerOutputs()?['body/value'])['messageId']

     

    Expression to check if application property is empty. Which should mean it is not flow bot.

    empty(body('Get_message_details')['from']['application'])

     

    fromapplication_keyword.png

  • Ramidus Profile Picture
    9 on at

    I am trying to figure out a workaround for when the keyword is also mentioned in the adaptive cared. I don't want to simply write a unique keyword. I actually WANT the trigger keyword(s) to be listed within the adaptive card survey, but that of course triggers an endless loop that posts in the group chat over and over and over. I'm very green and need a step by step of possible. 

     

    I.PNGII.PNGIII.PNG

  • Schmak Profile Picture
    2 on at

    Hello

    i got the same Problem too

    Is there a Way to seperate the Keywords or an other Step?

     

    I have tryed to seperate the words with (,) that did sometimes work but not reliably and with Arrays that dint work


    Thanks for Replies
    schmak

  • subinbs Profile Picture
    7 on at

    Am also having similar issue.
    Post adaptive card and wait for response is posting multiple times in the teams window

  • Ramidus Profile Picture
    9 on at

    I think the only way behind it is to have a bot that screens the info, or detect if the bot posted the message with "Get Message Details," and then write stuff into the JSON. I'm not smart enough though, lol.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 589

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 284 Super User 2026 Season 1

Last 30 days Overall leaderboard