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 / Update item details of...
Power Apps
Answered

Update item details of a nested record of collection on gallery

(0) ShareShare
ReportReport
Posted on by 18

I have a collection that has "Value" column, that column consist of another record table. On my screen, I have 2 galleries, first gallery is for the main record and the second gallery (nested on the first) is for the nested record table of each item. What I want to do is to update the nested record (on second gallery) when button is selected. Could someone help me with this roadblock? As my current solution has an error. Attached image of the app as well for your reference.

 

This is my main collection:

Screenshot_8.png

And this is the nested record table:

Screenshot_9.png

And this is my expression:

Screenshot_10.png

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @newbieppdev_30 ,

     

    Please use this button in first gallery instead of adding it in second(nested) gallery.

    UpdateIf(ThisItem.Value,ThisItem.Value.Status=false),{Status:false,IsChecked:true})

     

    Best Regards,

    Wearsky

  • newbieppdev_30 Profile Picture
    18 on at

    Hello @v-xiaochen-msft, thanks for answering. I have tried to add it, but I am having error. 

    Screenshot_11.png

     

    For your reference, I am attaching as well these images (galleries items)

    Gallery 1:

    Screenshot_12.png

     

    Gallery 2 (nested gallery):

    newbieppdev_30_0-1693533797547.png

     

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @newbieppdev_30 ,

     

    Where is the button? In first gallery or in second gallery?

     

    Best Regards,

    Wearsky

  • newbieppdev_30 Profile Picture
    18 on at

    Hi @v-xiaochen-msft, it is on the second gallery (the nested one).

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @newbieppdev_30 ,

     

    Please try to use this button in first gallery instead of using it in second gallery.

     

    Best Regards,

    Wearsky

  • newbieppdev_30 Profile Picture
    18 on at

    Hi @v-xiaochen-msft, on my first gallery, I already have the same button that will update the "Status" and "IsChecked" value. Attaching here the gallery as well. So in my collection items, there's some item that do not have nested record table that's why I would like to add a different button on the second gallery. Hope this makes this more sense.

    newbieppdev_30_0-1693534636486.png

     

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @newbieppdev_30 ,

     

    You should use this button in first gallery because the updateif function is used to update multiple items.

    If you add buttons in each item of the nested gallery, there is no point in using this updateif function.

     

    Best Regards,

    Wearsky

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

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard