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

search on SP lookup column

I am very new to PowerApps - trying to create my first app.

An app that will allow me to check in/out and track equipment using a barcode scanner.

I have the scanner part working but cannot get the app to find the code (scanned or typed) and retrieve the record.  

 

The default value for Items in BrowseGallery1 =

SortByColumns(Filter([@'Equipment Circulation'], StartsWith(Title, TextSearchBox1.Text)), "Title", If(SortDescending1, Descending, Ascending))

 

When I change Title to 'Full Name' it finds records with items in the SP list checked out to that person so I know the data connection is working.  However I am wanting to search based on the 5-8 digit code of the item.  That code is in a lookup field in SP called Equipment ID Lookup.  When I try to replace Title with 'Equipment ID Lookup' I get a message "invalid argument type (record). Expected a text value."  So I'm assuming that the problem is with the lookup field in SP.  

 

I thought it would be simple to have 2 lists.  One is the master list of each piece of inventory and the second list to track the circulation of each item (1 to many).  Can't seem to figure it out.   

 

1 ACCEPTED SOLUTION

Accepted Solutions
JacoDeRooij
Helper II
Helper II

@mclatch 

I hope I can help you.

 

You can use the Text() function around the ‘Equipment Lookup ID’. It converts the value to a text. 

I have to try it myself to be completely sure. But I think you can give this a try. 

I’ve you have any further questions please let me know.

 

kind regards

View solution in original post

3 REPLIES 3
JacoDeRooij
Helper II
Helper II

@mclatch 

I hope I can help you.

 

You can use the Text() function around the ‘Equipment Lookup ID’. It converts the value to a text. 

I have to try it myself to be completely sure. But I think you can give this a try. 

I’ve you have any further questions please let me know.

 

kind regards

Thanks!  That worked. I'm now getting a delegation warning though with no search results. Presumably because I have about 800 items in inventory.  I will have to rethink this.    

In the setting of PowerApps you can set the delegation limit which is default 500 to max 2000. Unless there will be more than 2000 records in the datasource you can set this to 2000. 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (1,270)