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 III
Super User III

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 III
Super User III

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 III
Super User III

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 III
Super User III

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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

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