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 Apps / Gallery items does not...
Power Apps
Unanswered

Gallery items does not update when pointed to a global variable with a table column

(0) ShareShare
ReportReport
Posted on by 14

Hi All, 

Does anyone know why this is happening. 

Set(varParent, {PropertyA:1, PropertyB:2, Children:Table({childName:"Tony", childProperty2:"Red"},......)}).

My Gallery Items is pointed to varParent.Children

 

But when I update the varParent.Children items, the gallery is still showing the old children items. Despite Collections Preview showing the updated items. 

And to clarify, I am not making any changes to the children structure, simply values to the pre existing columns, and number of items. 

The Gallery Items only refreshes if I change the gallery Items property and back to the varParent.Children.

 

It seems like I need a to refresh the gallery or something. This behavior also happens in the published version of the app. 

 

Any ideas? Thank you in advance 

Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,833 Super User 2026 Season 1 on at

    Hi @JanGenese ,

     

    A workaround is perhaps to reset the gallery in the same action as where the changes are made.

     

    Can you share how you update the children properties?

  • timl Profile Picture
    37,229 Super User 2026 Season 1 on at

    @JanGenese 

    I'm not sure of the answer, but you could try calling formula to reset the gallery to see if that helps.

    Reset(gallery1)

     

  • JanGenese Profile Picture
    14 on at

    Hi BCBuizer, 

    This is how I am currently doing it. 

    Clear(varParent.Children);
    ForAll(
    colNewChildrenComingFROMSP As ThisChild,
    Collect(
    varParent.Children,
    {
    Property:ThisChild.Property
    }
    )
    );

  • JanGenese Profile Picture
    14 on at

    Hi, 

    So I tried reset the gallery after updating the children both after the update code, and with a button to manually reset and the gallery is still showing the older data

  • JanGenese Profile Picture
    14 on at

    I also wanted to add that I have now created another gallery pointed to the same varParent.Children and it is displaying items different records than the other gallery pointed to the same source. 

    So far, it looks like the gallery shows items that were present at the time the Items property was updated.

  • BCBuizer Profile Picture
    22,833 Super User 2026 Season 1 on at

    Hi @JanGenese ,

     

    I have been trying to get your code for updating to work, but it keeps giving me errors.

     

    What strikes me as odd is that you seem to be using a collection within a global variable. 

  • JanGenese Profile Picture
    14 on at

    Hi BC,

     

    Thanks for checking on this further. Odd why you would get errors and I don't. I wrap the the children items in a Table function on create if that may be the difference. 

    Honestly, I too was surprise about how Collection functions just works OOB on a global var column for me. I also tried using the following code to make updates which yielded the same result.

    Patch(varParent, varParent, {Children:colTemporary});
    
    or 
    
    Patch(varParent, varParent, {Children:Table({...},{...})});

     

    The collection updates in the background but the gallery is still frozen stuck.

    I have been facing another bug with comboboxes where collections with Integers just doesn't work so something may be wrong with our tenant env. 

    For now, whenever I update the children of the global var, i am also making a copy to a stand alone collection which the gallery works fine with. 

     

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

#2
11manish Profile Picture

11manish 224

#3
Valantis Profile Picture

Valantis 181

Last 30 days Overall leaderboard