Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

Patch to Dataverse table with a Lookup Column

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:
  • SudeepGhatakNZ Profile Picture
    SudeepGhatakNZ 14,123 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?

  • 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
    SudeepGhatakNZ 14,123 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?

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,591

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,090

Leaderboard