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 to send Teams pos...
Power Automate
Unanswered

Flow to send Teams post on SharePoint item modification running continuously and wont stop.

(0) ShareShare
ReportReport
Posted on by

Hello,

 

I have a flow in which when a value in a field is modified, sends a Teams post to a user and updates a field in the SharePoint list. Yet it continuously runs and send a post for the same updated item and won't stop.

 

flow1.jpg

 

Thanks in advance.

Categories:
  • Ellis Karim Profile Picture
    12,377 Super User 2026 Season 2 on at

    Yes, this is because your trigger is waiting for "When an item or file is modified", then your flow executes.

    But in your flow you are also MODIFYING the item or a file, which means that your flow is trigger again (item or file has been modified) ... and so on.

    Ellis

  • Ellis Karim Profile Picture
    12,377 Super User 2026 Season 2 on at

    One option: to add a condition to your trigger so it only activates when a certain condition is met (eg. only trigger the flow if the ID column is empty, does not contain a value):

    ekarim2020_0-1628709696470.png

    A simple way to create a trigger condition in Power Automate

    https://tomriha.com/a-simple-way-to-create-a-trigger-condition-in-power-automate/

     

    and

    Tip : Using Trigger Conditions in Power Automate

    https://powerofpowerplatform.com/tip-using-trigger-conditions-in-power-automate/

  • ShadowTech Profile Picture
    on at

    @ekarim2020 So I added the following as a trigger to the SharePoint item modify and its still  repeatedly shooting off.

    @equals(triggerOutputs()?['body/Status/Value'], 'Completed')

     

    Any suggestions? The flow needs to update another field in that same item.

  • Ellis Karim Profile Picture
    12,377 Super User 2026 Season 2 on at

    Check: The text in the trigger condition will be case sensitive.

    In my flow below, the trigger is based on the from email address. The email arrives as AlexW@ so the flow triggers. The flow does not trigger if the from address does not match AlexW@, for example alexw@ will not trigger the flow:

    ekarim2020_0-1628714114056.png

    So in the trigger condition I can add the toLower() function to convert the From address to lower case before testing for my condition alexw@########.com

    ekarim2020_1-1628714349812.png

    Hope this helps.

    Ellis

  • ShadowTech Profile Picture
    on at

    @ekarim2020 The flow is triggering just fine and the value is exact 'Completed'. But it still stuck in a loop. Doesn't look like the trigger is working. This is a choice field with the determining value "Completed". Once the other column in the SharePoint list is modified, it sends another post.

  • Ellis Karim Profile Picture
    12,377 Super User 2026 Season 2 on at

    You could add a new Yes/No column called "UpdatedByFlow"  to your SharePoint list, with the default being set to No. When you update the SharePoint item, set UpdatedByFlow to Yes.

    The trigger condition would be something like:

     

    @equals(triggerOutputs()?['body/UpDateByFlow/Value'], 'No')

     

    and it will only trigger if the UpdatedByFlow is no, preventing the infinite loop.

    See:  Infinite loop when an item is updated post and Update Item Infinite Loop (11-03-2020 09:04 AM "Hi all, I'm writing this comment after succesfully stopped a loop in ''When an item is created of modified''.)

    Hope this helps.

    Ellis

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 377

#2
11manish Profile Picture

11manish 302 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 130

Last 30 days Overall leaderboard