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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Lookup based on Unique...
Power Apps
Unanswered

Lookup based on Unique ID in another sharepoint list

(0) ShareShare
ReportReport
Posted on by 4

Hello,

 

I'm trying to solve what feels like it should be a simple lookup - 

 

I have two SharePoint lists:

 

Quotes - contains customer quotes, and a SharePoint generated unique ID number, and a column for the customer business. 

QuoteIDCustomer orgType of work
1MicrosoftConsultancy

 

Time spent - staff enter records of the time they've spent working on a particular quote.

UserHours spentRelevant QuoteID
John Smith21

 

 

I have a ComboBox that gives users the option of selecting a Quote ID :1,2,3,4,5,etc

 

I then have a TextInput that I'm trying to  use Lookup, looking in the Quotes table and finding the quote with the ID, and then populating with the data in the Customer Org

 

I've tried a few combinations of the following, but I keep getting hit by errors 

 

 

LookUp(Quotes, ID=ThisItem.QuoteID.Value, 'Customer Org.')

 

 

 

So, this should be looking at the Quotes table, and if the ID number, i.e. "1" selected by the user in the combobox matches a QuoteID in the Quotes table, it should display the Customer Org column of that record. 

 

So:

User selects QuoteID "1" in the combo box

Customer Org field is auto-populated with "Microsoft"

 

Categories:
I have the same question (0)
  • JD382 Profile Picture
    114 on at

    You can change the condition in your LookUp.  ThisItem.QuoteID.Value can be something along the lines of comboBox.Selected.Value. The "Value" part of this could be something like "Result" or ".QuoteID", depending on how the items in comboBox are populated. Also, if Quotes contains a column titled QuoteID, then you need to change "ID" to "QuoteID".

  • MattRMI Profile Picture
    4 on at

    I'm not sure what to change the value to,

    In my Time Spent table, the QuoteID is a lookup column to the Quotes table.

    From the Time Spent list, my users go New > and then select the Quote number in the form (lookup from the Quotes table). I just need the form to display the associated Customer of the quote when that drop-down has a number in it

     

     

  • JD382 Profile Picture
    114 on at

    What is in comboBox.Items?

  • MattRMI Profile Picture
    4 on at

    Choices([@'Time log'].QuoteID)

    This was auto-generated from the default form  - remember the QuoteID source data is actually stored in the Quotes SharePoint list, not in the Time log list. 

     

    MattRMI_0-1678213888071.png

     

  • JD382 Profile Picture
    114 on at

    In that case, it's probably simply "comboBox.Selected.Value" as I wrote in the example. I should've been a bit clearer that this was the likely option and the others are alternative options.

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 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard