cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
prasadsmartify
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
RezaDorrani
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
RezaDorrani
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

v-xida-msft
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
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 is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (14,912)