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.
Hi @v-qiaqi-msft! Trying to achieve this but get an error? Any directions?
Members is a single-select person column on another SP list. Main list is 'ListData2', the other 'ListData2Members'. Thank you! 🙂
Thank you @v-qiaqi-msft . It worked.
Hi @Anonymous,
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
Hi @Anonymous ,
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.
Hi @Anonymous ,
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.