cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ogun_ustun
Helper III
Helper III

Lookup Using Drop Down Value

Dear All,

 

I having a problem to proceed a lookup by using a dropdown list. Details are as following:

- I have list called "TON_CompanyList"

 

2020-04-28 13_38_23-EMEA Central Logistics - TON_CompanyList - All Items.png

- User firstly select Company Country then Company Name

- Based on selected "origin company name" i need to proceed lookup and bring "Vendor Code" to my app.

Details as below:

Can you please support me to sort it out?

2020-04-28 13_42_53-Unread Mail - Ogun.Ustun@yazaki-europe.com - Outlook.png

2 ACCEPTED SOLUTIONS

Accepted Solutions
eka24
Super User
Super User

Your formula seem fine except if the user selects the Company name, then it should not be Dropdown.Selected.ID but

Dropdown.Selected.Company or

Dropdown.Selected.Value,

 

So:
LookUp(TableName,'Company name',Dropdown.Selected.'Company name','Vendor name')

LookUp(TableName,'Company name',Dropdown.Selected.Value,'Vendor name')

 

If you still get error, show the formula on the Dropdown, it will help

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

WarrenBelz
Super User
Super User

Hi @Ogun_ustun Your code

LookUp(
   TON_CompanyList,
   'Company Name'=DDOriginCompanyName.Selected.ID
).'Vendor Code'

s failing probably because 'Company Name' is Text and DDOriginCompanyName.Selected.ID is numeric and will not match anyway. I cannot see your drop-down Items, but the value could be

LookUp(
   TON_CompanyList,
   'Company Name'=DDOriginCompanyName.Selected.'Company Name'
).'Vendor Code'

The .'CompanyName' may also be .Value or .Result depending on the Items of DDOriginCompanyName

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

2 REPLIES 2
eka24
Super User
Super User

Your formula seem fine except if the user selects the Company name, then it should not be Dropdown.Selected.ID but

Dropdown.Selected.Company or

Dropdown.Selected.Value,

 

So:
LookUp(TableName,'Company name',Dropdown.Selected.'Company name','Vendor name')

LookUp(TableName,'Company name',Dropdown.Selected.Value,'Vendor name')

 

If you still get error, show the formula on the Dropdown, it will help

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

WarrenBelz
Super User
Super User

Hi @Ogun_ustun Your code

LookUp(
   TON_CompanyList,
   'Company Name'=DDOriginCompanyName.Selected.ID
).'Vendor Code'

s failing probably because 'Company Name' is Text and DDOriginCompanyName.Selected.ID is numeric and will not match anyway. I cannot see your drop-down Items, but the value could be

LookUp(
   TON_CompanyList,
   'Company Name'=DDOriginCompanyName.Selected.'Company Name'
).'Vendor Code'

The .'CompanyName' may also be .Value or .Result depending on the Items of DDOriginCompanyName

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,621)