web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Need some formula help...
Power Apps
Answered

Need some formula help on search items

(0) ShareShare
ReportReport
Posted on by 32

One page of my app is a search inventory page. On this page I have TextSearchBox1 and a BrowseGallery. In my BrowseGallery I have the follwoing formula:

 

SortByColumns(Search('IT Inventory', TextSearchBox1.Text, "Make","Model","Licence_x0020_Key","Install_x0020_Details","Common_x0020_Name","Funding_x0020_Source","OData__dlc_BarcodeValue","Port","Refurb_x0020_New_x0020_Used","Vendor_x0020_Info","PO_x0020_Number","Title"), "ID", If(SortDescending1, Descending, Ascending))

 

However it keeps telling me "The function 'Search' has some invalid arguments." I have tried to re-write this several ways but cannot seem to come up with anything that works. What I am trying to do is search by all the columns that are text in my data which are 

"Make","Model","Licence_x0020_Key","Install_x0020_Details","Common_x0020_Name","Funding_x0020_Source","OData__dlc_BarcodeValue","Port","Refurb_x0020_New_x0020_Used","Vendor_x0020_Info","PO_x0020_Number","Title"

 

I have everything else working in the app. The app is suppoased to allow us to add/update an item to the database, add a barcode to the item with a uniqe number, add the barcode and local name to a lablel in word for prining, search the barcode for the unique number so you can enter it in the search page . Everything works except for the search page. Any help is appreciated!  

Categories:
  • Abdou Profile Picture
    Microsoft Employee on at
  • Abdou Profile Picture
    Microsoft Employee on at

    I can't see anything wrong with the formula. One possible issue is that you might have misspelled one of the column names.

    Can you please share a screenshot of the formula bar? that could help point to the offending parameter.

    For example, the formula below misspells "heading" (it should be "Heading"):2016-12-08 15_25_54-PowerApps.png

     

     

     

     

  • murali Profile Picture
    Microsoft Employee on at

    Hello - Are you sure "PO_x0020_Number" is a Text column? One of the columns is not a text column. The way to confirm this is to remove all columns from Search function and add them one by one.

     

    Thanks

    Murali

  • AndreaRose Profile Picture
    32 on at

    Oh my! You are right.. the  "PO_x0020_Number" is a Text column. Is there a way to write this so it accepts both text and numerical data?

  • murali Profile Picture
    Microsoft Employee on at

    You could change the Search to a Filter expression instead.

     

    https://powerapps.microsoft.com/en-us/tutorials/function-filter-lookup/

     

    Thanks

    Murali

  • Verified answer
    AndreaRose Profile Picture
    32 on at

    You rock.. thank you! Third day using PowerApps and just trying to learn all the fun stuff it can do. I appreciate the help! 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard