Announcements
I am trying to patch multiple rows of a gallery to a dataverse table. I am having issues patching to the column that is a lookup.
Each item is added to galley by filling in the following:
The item number comes from a combobox and it is added to the gallery using:
Hi @NthnClrksn , my first suggestion would be to try and use an As-statement. This helps specify what you exactly mean with 'ThisRecord'. It might solve this issue for you. The code then would be:
ForAll( glyItemsForTesting_3.AllItems As ItemsToPatch, Patch( 'Testing Items', Defaults('Testing Items'), { Available: 'Available (Testing Items)'.Yes, 'Batch Number': ItemsToPatch.'Batch Number', Source: ItemsToPatch.Source, 'Item Number LookUp': First( Filter( 'Item Designs', 'Item Number' = ItemsToPatch.'Item Number' ) ) } ))
@NthnClrksn In addition: why do you use the First(Filter())-combination instead of LookUp? For example like:
LookUp( 'Item Designs', 'Item Number' = ItemsToPatch.'Item Number')
@NPPlatform
Thank you for your help!
I do that at the moment because some of the records are duplicated so the lookup would not give a definite answer.
Understandable, glad you got it working!
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.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 514
WarrenBelz 419 Most Valuable Professional
Valantis 295