Seeking help updating a collection based on values of another collection. So, I have
colVehicles (glrVehicles) colReservations (glrReservations)
vehNumber vehicleNumber
isAvailable (T/F)
**The above collections have additional columns but were not referenced here as they are not relevant
I need to updat colVehicles.isAvailabe to false if vehNumber <> vehicleNumber in colReservations table.
colVehicles will only have the vehNumber once, but will likely have 3-5 records. The same vehicle number could appear in the colReservations table multiple times.
If it appears in the colReservations table at least once, then isAvailable should be false. The colReservations table could have many records.
Thanks, in advance!
Solved! Go to Solution.
How about something like this:
UpdateIf(colVehicles, !(vehNumber in colReservations), {isAvailable: false})
That should get you what you need..
How about something like this:
UpdateIf(colVehicles, !(vehNumber in colReservations), {isAvailable: false})
That should get you what you need..
I agree that @RandyHayes's formula should do the trick. If not, post back here!
Not sure why I couldn't come up with that - but works like a charm! Thank you; you all are awesome!
Stay up tp date on the latest blogs and activities in the community News & Announcements.
Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
User | Count |
---|---|
198 | |
173 | |
62 | |
33 | |
32 |
User | Count |
---|---|
338 | |
271 | |
105 | |
71 | |
58 |