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 / Update Person Column a...
Power Automate
Answered

Update Person Column and Avoid Infinite Loop

(0) ShareShare
ReportReport
Posted on by

Hello everyone,

 

I'm trying to build a flow that updates a person column based on the value in a text field and also avoid an infinite loop. I want the flow to run only when the value in UnitHeadText is not equal to the value in the UnitHead person column in sharepoint. However, I'm not sure how to achieve this...

AdaEloka_0-1704467713303.png

AdaEloka_1-1704468090769.png

 

 

Categories:
I have the same question (0)
  • Verified answer
    Anchov Profile Picture
    1,986 on at

    Try adding a Trigger Condition.  I tried this as it appears to work and doesn't trigger an infinite loop.  This is Assuming that your UnitHeadText is formatted like a claims token (example:  i:0#.f|membership|rickadmin@0v42t.onmicrosoft.com

     

    @not(equals(triggerOutputs()?['body/UnitHead#Claims'], triggerOutputs()?['body/UnitHeadText']))

     

     

    Anchov_0-1704490252154.png

    To avoid the infinite loop you must update the SharePoint item so that UnitHead Claims and UnitHeadText are equal before the flow completes.

    Full flow:

    Anchov_1-1704490433187.png

    SharePoint List values before flow runs:

    Anchov_3-1704490900842.png

     

    SharePoint List values after flow runs:

    Anchov_2-1704490457369.png

     


    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

    Cheers!
    Rick Hurt

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 391

#2
11manish Profile Picture

11manish 276

#3
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

Last 30 days Overall leaderboard