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 / Append boolean variabl...
Power Automate
Answered

Append boolean variable to an array

(0) ShareShare
ReportReport
Posted on by

Hello all,

 

I've a flow where I'm trying to create a logic where I'm doing some checks and based on the result of the condition I set a variable to true or false. At the end, I wanna finish with an array with all the results from all items to validate if the array contains a false.

 

My idea was to use a boolean variable and at the end append that variable to an array. But the array is always just getting the last item.

 

Any idea of how to solve this or other way to do it?

 

Here I left some prints of the logic right now:

 

First I'm checking for each Market from a multiselection column on a sharepoint list get all items with that market on other list. The result is for example 3 runs for the first apply to each and then 2 runs for each of those 3.

Miguel_Pst_0-1629718755334.png

 

After that I need to check if those tasks that i get for each market are done. If so, I want to set the boolean variable to true, otherwise false.

Miguel_Pst_1-1629718858944.png

Miguel_Pst_0-1629723975802.png

 

Miguel_Pst_1-1629723999871.png

 

 

I've tried the append action on bellow the set action also and it also replaced the value.

 

I need to save all the MarketCompleted variable results to the array, I've tried to append it in a lot of different places and it always getting just one result.

 

Thanks in advance, 

Miguel

Categories:
I have the same question (0)
  • tom_riha Profile Picture
    10,187 Most Valuable Professional on at

    Hello @Miguel_Pst ,

    the 'Set...' actions will replace the value in a variable, you want to use the 'Append to array variable' actions to keep adding the values.

  • Miguel_Pst Profile Picture
    on at

    The set you see on print is for the boolean variable

     

    I want to append that boolean to an array at the end, but it replaces always.

  • tom_riha Profile Picture
    10,187 Most Valuable Professional on at

    Then please share the whole flow diagram to see where the problem might be.

  • Miguel_Pst Profile Picture
    on at

    I've just updated the post

  • Verified answer
    tom_riha Profile Picture
    10,187 Most Valuable Professional on at

    The 'Append to array variable' must be inside the 'Apply to each', that's where you process all the results one by one. If you move it after the 'Apply to each', it'll run after everything is processed and use only the latest value.

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 250 Super User 2026 Season 1

#2
Expiscornovus Profile Picture

Expiscornovus 222 Most Valuable Professional

#3
Haque Profile Picture

Haque 174

Last 30 days Overall leaderboard