cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
New Member

PowerApps- Data is not showing up for lookup field and showing error

Hi,

 

In canvas app I am using Account and Contact lookup field while adding this lookup dropdown filed is showing error and not showing data.

 

Showing error as : The fuction 'Search' has some invalid argument for searchfeild.

 

Thanks ,

Prasad

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User II
Dual Super User II

@prasadsmartify 

Use CountRows(Filter(datasourcename,User().Email in Approvers.Email )) and check to see if the row count is greater than 0. If yes then user is in the approvers list

View solution in original post

2 REPLIES 2
Dual Super User II
Dual Super User II

@prasadsmartify 

Use CountRows(Filter(datasourcename,User().Email in Approvers.Email )) and check to see if the row count is greater than 0. If yes then user is in the approvers list

View solution in original post

Community Support
Community Support

Hi @prasadsmartify ,

Could you please share a bit more about your issue?

Which formula do you used within your app? Could you please share more details about it?

Further, do you use Search function in your app?

 

Based on the needs that you mentioned, I suppose that you want to search your Account records or Contact records using Search function based on LookUp column, is it true?

 

Currently, within PowerApps, the Search() function used to search records based on Text type columns rather than complex type column (e.g. LookUp column).

If you want to filter your data source records based on LookUp type columns, please take a try with the following workaround:

Filter(
         'Account',
          TextSearchBox1.Text in LookUpColumn.'Primary Name'
)

Note: The LookUpColumn represents the LookUp column in your Account data source. The 'Primary Name' represents the column in the referenced data source, where the LookUpColumn references values from.

More details about Filter function, please check the following article:

Filter function

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Top Solution Authors
Top Kudoed Authors
Users online (40,614)