cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Community Champion
Community Champion

Re: ForAll and UpdateIf Field in Collection = Datasource's Primary Key

OK @cmalm ,

Note @RandyHayes has given you another option, but if you want to rename the field

ClearCollect(dbSublotCollection, 
   RenameColumns( 
      ShowColumns(
         Filter(
            sublots, lot_fk.Id = lotsGallery.Selected.lot_pk
         ),
       "ID", 
       "sublot_name"
    ),
    "sublot_name",
    "sublot_match"
)

then

ForAll(
   dbSublotCollection, 
    UpdateIf(
      artemia_sublots,
       sublot_pk = ID,
       {sublot_name: sublot_match}
    )
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

Highlighted
Helper II
Helper II

Re: ForAll and UpdateIf Field in Collection = Datasource's Primary Key

As suspected that worked. Note that I also had to change the ID field of the collection. Thanks a bunch and buy toilet paper!!! Just kidding.

Highlighted
Frequent Visitor

Re: ForAll and UpdateIf Field in Collection = Datasource's Primary Key

Hi, @cmalm Could you post how the solution was written?

 

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,622)