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.
Solved! Go to Solution.
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: