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 / Trying to sync between...
Power Automate
Unanswered

Trying to sync between 2 sharepoint lists without infinite loops

(0) ShareShare
ReportReport
Posted on by
Good day,
 
I am trying to build a flow (or rather 2) that will send some information from Sharepoint list A to Sharepoint list B and different information from Sharepoint list B to Sharepoint list A. The fields are different. I am having a problem with an infinite loop because I use when an item is created or modified as my trigger and this is what happens :
 
Flow A sends information to Sharepoint List B, but since some information are modified or added to Sharepoint list B, it triggers Flow B, causing a loop because Flow B sends information to Sharepoint List A. I also tried using a flag to set UpdatedByFlowA to "Yes" to my Sharepoint List A, but it switches to Yes, then No after the update item is ran, it causes the trigger when an item is created or modified, so the flow triggers itself, creating a circular loop.
 
Here is a screenshot :
 
 
The condition is : 
length(body('Get_items_Sharepoint_list_B')?['value']) is greater than 0. When I create an item in Sharepoint list A and if it doesn't exist in Sharepoint list B, it will create that item.
 
I am a bit confused how or even if it is possible to fix my infinite loop problem either by Flow A and Flow B triggering each other on item modified, or Flow A or Flow B triggering themselves when the flag is changed from Yes to No.
 
Thank you for the kind help.
Categories:
I have the same question (0)
  • RobElliott Profile Picture
    10,485 Super User 2026 Season 1 on at
    The problem with the when an item is created or modified trigger is that it will trigger when any column is modified. Try using the when an item or a file is modified trigger instead. The first action should then be get changes for an item or a file and in the Since field select Trigger Window Start Token. :

     
     
    Then have a condition that checks whether a specific column has changed:





     
     
    You'd then need a second flow to look at changes to the other list.

    Hopefully that should get over the infinite loop.

    Rob
    Los Gallardos
    Principal Consultant, Power Platform, WSP Global (and classic 1967 Morris Traveller driver)
     
     
  • Riyaz_riz11 Profile Picture
    4,150 Super User 2026 Season 1 on at
     
    Hi,
     
    Add a Yes/No column in each list, e.g. UpdatedByFlowA and UpdatedByFlowB.
    In Flow A trigger, add a trigger condition like: @equals(triggerOutputs()?['body/UpdatedByFlowB'], false) so it only runs when B has not just updated it.​
    At the end of Flow A, set UpdatedByFlowA = true and do not flip it back to false.
    do the mirror setup in Flow B with its own flag and trigger condition so neither flow reacts to the other’s updates
     
    If I have answered your question, please mark it as the preferred solution ✅ . If you like my response, please give it a Thumbs Up 👍.
    Regards,
    Riyaz

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 959

#2
Valantis Profile Picture

Valantis 872

#3
Haque Profile Picture

Haque 589

Last 30 days Overall leaderboard