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 / 'Search" Issue in Canv...
Power Apps
Answered

'Search" Issue in Canvas App

(0) ShareShare
ReportReport
Posted on by 20

Greetings!

 

I'm new to powerApps. I'm trying to implement the search functionality but, I'm getting some error, not sure what I'm missing. Can anyone please help me out ? (PFA)

 

Note: "searchAcctName" is the var I'm passsing from Another screen.

 

 

Err.png
Categories:
  • iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    Instead of passing between screens, try setting a Global variable with

    Set(searchAcctName, ValueToBeSet)

  • praveencrm Profile Picture
    20 on at

    @iAm_ManCat .. Tired but, still getting same error. PFA.

     

     

    Screen 1.png
    Screen 2.png
  • iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    Ok not a problem - it looks like you are doing this within the OnSelect of the icon - the icon cannot have 'Accounts' data source as a condition within an If check on its OnSelect

     

    - your txtInput should have a default of:

    searchAcctNameGlobal

    - and your Gallery should have an Items set to:

    If(IsBlank(searchAcctNameGlobal), Accounts, Search(Accounts, searchAcctNameGlobal, "name"))

     

    Also, just to confirm - the column name within your datasource is 'name' and is not a different internal name like 'AccountName'?

  • timl Profile Picture
    37,287 Super User 2026 Season 2 on at

    Hi @Praveenpk365 

    I notice that you added this formula to the OnSelect property of your search icon. For the search to work, you need to set the Items property of BrowseGallery3 to this formula instead of the OnSelect property of the search icon.

     

    image.png

  • Verified answer
    iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    Oh yeah and within the OnChange of your textInput, make it
    Set(searchAcctNameGlobal, TextSearchBox3.Text)

     

    So that way the search will update if you edit it in this textInput as well

  • timl Profile Picture
    37,287 Super User 2026 Season 2 on at

    @Praveenpk365 - I only noticed that @iAm_ManCat said the same thing after I posted my reply. If you follow what @iAm_ManCat says, you'll be fine as he's really knowledgeable on all of this.

  • iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    Thanks @timl - I noticed that you had written a similar response after I had edited my reply (great minds think alike and all that)

  • timl Profile Picture
    37,287 Super User 2026 Season 2 on at

    Yes, great minds indeed @iAm_ManCat!

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard