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

View solution in original post

4 REPLIES 4
WarrenBelz
Super User III
Super User III

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

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

View solution in original post

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

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

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (39,707)