web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Update Gallery Collect...
Power Apps
Answered

Update Gallery Collection based on checkbox

(0) ShareShare
ReportReport
Posted on by 117

Hello,

 

Have a 5 record collection defined as a collection called colTeam:

colName 

colRole   <-- loaded in OnStart with the 5 team roles (Project Lead, Manager, Sponsor, Developer, User)

 

The collection colTeam is displayed in a gallery with checkboxes. The user may select one or multiple checkboxes:

  luvagoldenk9_2-1628101220033.png

 

In a second gallery, we are doing a O365 search for team names:

luvagoldenk9_1-1628101062181.png

In this search gallery, when the user selects '<' next to a person's name, say in this case Suzy Smith, we want Suzy Smith to show up in the first gallery by those gallery items with checkboxes (based on the collection colTeam):

2021-08-04_12-20-09.jpg

 

 

 

 

 

 

 

Unfortunately my update is placing the selected name in all name fields instead of just Project Lead and Developer. The code, which I know is incorrect, is:

 

UpdateIf(colTeam,galcheckboxTeam.Value=true,{Name:galO365Name.Text})

 

I have tried quite of few variations incorporating ForAll, Filter, and Patch but cannot seem to get it to only populate the selected name in the selected fields.

 

Any suggestions? 🤔 Thank you!

Categories:
I have the same question (0)
  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    @luvagoldenk9 

     

    On check of checkbox are you sending the value into the collection ? If so would you please mention the column instead of galcheckboxTeam.Value in our formula just for a try.

  • Verified answer
    luvagoldenk9 Profile Picture
    117 on at

    Per your suggestion, I did add the checkbox value to the collection. That seemed to help but I was still running into issues with the updates. Since it is only 5 roles, and instead of using a collection, I switched to setting up a global variable for each role since there are only 5. Once I made this simple change, it was so easy to do the updates in the patch using the global variables. Thank you for your input!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard