cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
jeanshak
Level: Powered On

Update Fields in Collection by UpdateIf ? Loop on Collection

Hello
I would like to update all Records in Collection LocPic in the field CHECKED 
All Values to true:

With this Statement it doesnt work, what is wrong?

UpdateIf(LocPic; CHECKED=false ; {CHECKED=true})


Is there any loop - construction to check all elements of the collection
for example: 
For each(LocPic)

..... do something with the elements
End each


Thanks for Help

Jens

Jens Rogge
1 ACCEPTED SOLUTION

Accepted Solutions
Meneghino
Level 10

Re: Update Fields in Collection by UpdateIf ? Loop on Collection

Correct syntax is:

UpdateIf(LocPic; CHECKED=false ; {CHECKED: true})

Or better:

UpdateIf(LocPic; !CHECKED ; {CHECKED:true})

View solution in original post

2 REPLIES 2
Meneghino
Level 10

Re: Update Fields in Collection by UpdateIf ? Loop on Collection

Correct syntax is:

UpdateIf(LocPic; CHECKED=false ; {CHECKED: true})

Or better:

UpdateIf(LocPic; !CHECKED ; {CHECKED:true})

View solution in original post

jeanshak
Level: Powered On

Re: Update Fields in Collection by UpdateIf ? Loop on Collection

Thx ! Top - Works fine! 

Jens Rogge

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Top Kudoed Authors
Users Online
Currently online: 66 members 3,466 guests
Please welcome our newest community members: