Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

LookUp sharepoint choice to text column

(0) ShareShare
ReportReport
Posted on by

Hello all,

 

I have code which compiles but my variable does not get a value. Code below:

Set(ProdDir, LookUp(BatchTrack, 'Batch ID'= BatchID1.Text && 'Wafer ID'= WaferID1.Text, Product.Value));

ProdDir does not have any data assigned to it after execution of the command. Is it an issue with the value from SharePoint list BatchTrack product column which is choice type.

 

Thanks for your help.

 

Rob

  • Verified answer
    v-mengmli-msft Profile Picture
    on at
    Re: LookUp sharepoint choice to text column

    Hi @rob4681 ,

     

    If BatchID1 and WaferID1 are controls in your gallery, and I'm guessing you want to set this variable to the value of the Product column of the currently selected item, then you can try this:

    Set(ProdDir,ThisItem.Product.Value)

     

    Best regards,

    Rimmon

  • rob4681 Profile Picture
    on at
    Re: LookUp sharepoint choice to text column

    Hi Rimmon,

     

    It's part of the onselect from a gallery. It's a choice column... only one value can be selected.

     

    Thanks.

  • v-mengmli-msft Profile Picture
    on at
    Re: LookUp sharepoint choice to text column

    Hi @rob4681 ,

     

    Could you tell me where you put this code and whether Product is a multi-select column?

     

    Rimmon

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,651 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard