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 / Creating a Flow to Upd...
Power Automate
Answered

Creating a Flow to Update all List Items

(0) ShareShare
ReportReport
Posted on by

I'm trying to create a flow that will update a column on ALL items in a list, based on responses in another column.  Please see the attached screenshots for reference: the flow should put a 'Yes' in the Security column if 'Security' is one of the selected choices in the Domains column.  I'm having trouble figuring this out.  I've built a flow (screenshots attached) but when tested, it puts a 'Yes' in the Security column of all items regardless of whether or not 'Security' is one of the selected choices in the Domains column.  FYI, the output I've placed in the 'Apply to Each' is 'value - List of Items'.  Many thanks in advance!

 

2023-08-25_10-32-19.png

Inked2023-08-25_10-37-59.jpg

2023-08-25_10-34-05.png

Categories:
I have the same question (0)
  • SamLed Profile Picture
    2,338 Moderator on at

    Hi,

     

    You are appending string to variable, so it append first item data which contains "Security". On next loop, you add second item data, but first one's data still present and your condition remains true.. Use "Set variable":

    SamLed_0-1692993762058.png

    ______________________________________________________________

    If I have answered your question, please Accept the post as solution.
    If you like my response, please Thumbs Up.

     

  • wskinnermctc Profile Picture
    6,519 Moderator on at

    @nathanisaacson Hi can you tell me what type of columns are the Security, Governance, etc? I'm assuming they are text type and they are not boolean type?

  • nathanisaacson Profile Picture
    on at

    Thanks for your response! I'm following but still a little confused on the solution.  Any chance you could build it out for me so I can replicate it on my end and see if it works?  Apologies, I don't often work with variables.

  • nathanisaacson Profile Picture
    on at

    The Security, Governance, etc. columns are Yes/No.

  • SamLed Profile Picture
    2,338 Moderator on at

    Hi,

     

    I proposed to replace your "Append to string variable" by a "Set variable". Variable will only contain current item domains on each loop.

    Actually each loop appends current item domains to variable which kept previous items ones. On second loop, it updates "Test2" item, because variable still contains "Test" domains where there is "Security" which makes the condition returning true.   

    You could also use "Domains" dynamic content directly  in the condition, variable looks useless.

    ______________________________________________________________

    If I have answered your question, please Accept the post as solution.
    If you like my response, please Thumbs Up.

  • Verified answer
    SamLed Profile Picture
    2,338 Moderator on at

    Hi,

     

    I suggested replacing your "Add to String Variable" with a "Set Variable". So the variable will only contain the current item domains on each loop.

    In fact, each loop adds the domains of current item to the variable which kept those of the previous ones. During the second loop, it updates the "Test2" item, because the variable still contains "Test" domains where there is "Security", which makes the condition true.

    You can also use the "Domains" dynamic content directly in the condition, the variable seems unnecessary.

    ______________________________________________________________

    If I have answered your question, please Accept the post as solution.
    If you like my response, please Thumbs Up.

  • wskinnermctc Profile Picture
    6,519 Moderator on at

    Can you look at this post and see if it helps. (User didn't mark my answer as solution grrr..) But if you scroll down I have a lot of screenshots that show something very similar.

    https://powerusers.microsoft.com/t5/Building-Flows/Update-Y-N-Column-based-on-multiple-choice-field/m-p/2233608 

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
David_MA Profile Picture

David_MA 77 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 68

#3
Expiscornovus Profile Picture

Expiscornovus 56 Most Valuable Professional

Last 30 days Overall leaderboard