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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / LookUp sharepoint choi...
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

Categories:
I have the same question (0)
  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @rob4681 ,

     

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

     

    Rimmon

  • rob4681 Profile Picture
    on at

    Hi Rimmon,

     

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

     

    Thanks.

  • Verified answer
    v-mengmli-msft Profile Picture
    Microsoft Employee on at

    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

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard