cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
learner7
Helper I
Helper I

Lookup on PowerApps form that will get name from another SharePoint list

Hello All,

 

I have a PowerApps form where data source is a SharePoint List. On form I have a Name column (single line of text in a SharePoint list). For that Name column I want to search employee name in another SharePoint list (Employee List). The Employee list has more than 200 employees so I don't want to create a dropdown on form. Is there a way to create a lookup column that will search employee name in another list when a user type letters in name column in PowerApps. 

 

Please advise.

1 ACCEPTED SOLUTION

Accepted Solutions
v-qiaqi-msft
Community Support
Community Support

Hi @learner7,

Based on the issue that you mentioned, do you want to search key words about the employee name?

Could you please share a bit more about the scenario, do you have a form in your app?

I think a Combo Box could achieve your needs.

Replace the Text input control with the Combo Box.

Set the Items property as below:

Filter('Employee List'.'Employee Name',ComboBox7.SearchText in 'Employee Name')

Set the DefaultSelectedItems property as below:

[ThisItem.Name]

Note that 'Employee Name' is a column existing in 'Employee List'. The Name is a column existing in your current list.

Please make sure the "Allow searching" function is on.

Hope it could help.

Regards,

Qi

Best Regards,
Qi

View solution in original post

4 REPLIES 4
WarrenBelz
Super User
Super User

Hi @learner7 ,

I am not sure exactly what you want to do with the output, but if you put this is a label, it will show matching employees as the user types in

LookUp(
    YourOtherList,
    StartsWith(
        Name,
        YourTextInput.Text
    )
).Name

Also, Name is a bad title for a field - the last section of this blog of mine may be helpful to you.

 

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.

WarrenBelz
Super User
Super User

Hi @learner7 ,

Just checking if you got the result you were looking for on this thread. Happy to help further if not.

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.

v-qiaqi-msft
Community Support
Community Support

Hi @learner7,

Based on the issue that you mentioned, do you want to search key words about the employee name?

Could you please share a bit more about the scenario, do you have a form in your app?

I think a Combo Box could achieve your needs.

Replace the Text input control with the Combo Box.

Set the Items property as below:

Filter('Employee List'.'Employee Name',ComboBox7.SearchText in 'Employee Name')

Set the DefaultSelectedItems property as below:

[ThisItem.Name]

Note that 'Employee Name' is a column existing in 'Employee List'. The Name is a column existing in your current list.

Please make sure the "Allow searching" function is on.

Hope it could help.

Regards,

Qi

Best Regards,
Qi

Thank you @v-qiaqi-msft . It worked.

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Check out the New Ideas Site

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (4,355)