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 / Break the loop - Teams...
Power Automate
Answered

Break the loop - Teams trigger by keyword

(0) ShareShare
ReportReport
Posted on by 28

Hi all,

 

I have a flow triggered by the keyword 'report'.  When a user enters this in the channel, an adaptive card displays asking which report they would like to get (followed by Exporting the File for Power BI Reports and emailing the PNG file).

 

Of course, asking which report they would like uses the trigger keyword, which triggers the flow again and results in a loop.

 

How can I prevent this from happening?

 

TIA,

 

Luuk

Categories:
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    69,042 Most Valuable Professional on at

    The easiest way would be to create the flow using an account that won't ever ask for a report. Then add a trigger condition to check who is using the keyword and not triggering if it is the flow account user. This article is for SharePoint but the concept is the same. How to avoid infinite trigger loop in Power Automate (tomriha.com)

  • Verified answer
    LP-22072109-0 Profile Picture
    28 on at

    I was able to work around this by editing the flow so it looked for more than one keyword.  Perhaps not ideal as the flow does get kicked off repeatedly, but it stops when "Get Message Details" looks for the word 'send'.

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!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 304

#2
David_MA Profile Picture

David_MA 245 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 243 Most Valuable Professional

Last 30 days Overall leaderboard