Notifications
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 711 Most Valuable Professional
Michael E. Gernaey 319 Super User 2025 Season 2
Power Platform 1919 268