web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Patch to Dataverse tab...
Power Apps
Unanswered

Patch to Dataverse table with a Lookup Column

(0) ShareShare
ReportReport
Posted on by

Hi - hoping someone can help me! I've searched and searched but haven't been able to find a solution that works yet!

 

I have a table:   'AU RA Details'       

This table contains a lookup column to another table called 'Product Masters' (so that users can select a product code on various forms/dropdowns etc)

 

I have a gallery (GalInvLines) that has data from another table: 'AU invoice lines' I want to patch into 'AU RA Details'.  This might be one line, or could be 50 lines with different product codes. The codes will all match exactly.

 

I've tried lots of various things - the closest it's come to working is this:

 

rowan_preston_1-1664322753382.png

However, this is patching either a blank value or if an item in the gallery has been selected, the same value for each record.......  How can i get the product code from each line of GalInvLines into 'AU RA Details'.  All other information is copying correctly, just the SKU code isn't!!!

 

Thanks for any help!

Rowan 

 

Categories:
I have the same question (0)
  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at
    Re: Patch to Dataverse table with a Lookup Column

    LookUp() function will return a record.

    Wouldn't you specify which specific field (from the record) you want to store in SKU?

  • rowan_preston Profile Picture
    on at
    Re: Patch to Dataverse table with a Lookup Column

    Hi Sudeep

    Yes - I want to patch the value from lblSKUCode into the column in 'AU RA Details' for the SKU Code. But this column is a lookup column and I can't get it to just accept the label value. 

  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at
    Re: Patch to Dataverse table with a Lookup Column

    Two questions:

    1) Why are you referring the control with @, why not the control name directly?

    2) Have you investigated what LookUp('product masters',PMPART=LblSKUCode.Text) returns?

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.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 757 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard