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

Updating a collection using another collection

Hi, a little guidance please.

Ive seen many posts about updating a collection from another collection, but none specific to my request - as far as ive seen.

My scenario:
CollectionA                     CollectionB
LineNo                            LineSeq
LineGUID                        Vendor

                                       LineID

 

The LineID column in CollectionB  is empty. What i want to do is :
update CollectionB set  CollectionB.LineID = CollectionA.LineGUID where CollectionB.LineSeq = CollectionA.LineNo

Please help me with the syntax required to perform this?

Thanks
Mark

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: Updating a collection using another collection

Hi @mroux27 

 

In that case, you can use the expression on the "OnSelect" property of the button as:
ForAll(CollectionA, UpdateIf(CollectionB, LineSeq = LineNo, {LineID: LineGUID}))

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

2 REPLIES 2
Dual Super User
Dual Super User

Re: Updating a collection using another collection

Hi @mroux27 

 

In that case, you can use the expression on the "OnSelect" property of the button as:
ForAll(CollectionA, UpdateIf(CollectionB, LineSeq = LineNo, {LineID: LineGUID}))

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

mroux27
Level: Powered On

Re: Updating a collection using another collection

@yashag2255  - so simple!!!  🙈 i was making it too complicated. It works fine. Many thanks for your prompt answer.... 🙌

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (4,760)