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 Apps
Unanswered

Search Not working

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Here's my problem:

 

I created a sharepoint list with the following column names:

 

Date (Date & Time type)

Name (People or Group type)

Activity (Choice type)

Hours (Number type)

Billable (Choice type)

Project Related (Text type)

Description (Text type)

 

The Title column is hidden.

 

The problem is: I'm trying to create an app where I can do a search / filter based on the Name column, but it's not working.

 

Should "Search('datasource';TextSearchBox1.Text;"Name")" work?

 

Best regards,

Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,991 Moderator on at

    @Anonymous

    You are having an issue because SEARCH requires a string value for the 3rd parameter but your column "Name" is a Person/Group object.  However, you can achieve your goal with the help of a ComboBox and the FILTER function.

     

    First, create a new ComboBox with the following properties

     

    Items: [@your_SPlist_name].Name
    DisplayFields: ["DisplayName"]
    SearchFields: ["DisplayName"]
    IsSearchable: true

     

    Then put this code in the Items property of your Gallery.

     

    Filter(NamesList,Name in ComboBox1.SelectedItems)

     

    There we go.  Let me know if you have any questions.

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    The reason why you met this problem is Name is People or Group type.

    This complex data type need special formula.

    The first solution is as @mdevaney said, using combo box to filter.

    If you insist in using textinput to filter, then I do not suggest you use Search function, cus this function only works for text data type.

    I suggest you use filter function ,try this formula:

    Filter('datasource';TextSearchBox1.Text in Name.DisplayName)

     

     

     

    Best regards,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Tnks for the fast reply @mdevaney 

     

    I created the  ComboBox with the properties, but no information appears in the box.

     

    Items: Timesheet.'Created By'
    DisplayFields: ["DisplayName"]
    SearchFields: ["DisplayName"]
    IsSearchable: true

     

  • mdevaney Profile Picture
    29,991 Moderator on at

    @Anonymous 

    Make sure your syntax is exactly the same as mine.  You wrote this code 

     

    Items: Timesheet.'Created By'

     

    Whereas I wrote this code

     

    Items: [@Timesheet].'Created By'

     

    Use my syntax and let me know the results.  I made a test of this solution before my original post.

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up." 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Still not working :S

     

    I realized that I can't change the value of IsSearchable. It's fixed in false.

     

    I don't know if it affects anything. But I changed the Name column to Created By (which the list itself creates)

  • mdevaney Profile Picture
    29,991 Moderator on at

    @Anonymous 

    If you changed the column name you must refresh your datasource on the left side menu before building and further.  Try this and test again.

     

    If IsSearchable is set to false permanently, delete this control and try again.  Make sure the datasource is refreshed first.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    IsSearchable starts as True, but when I modify the Item, it sets to false.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 516

#2
WarrenBelz Profile Picture

WarrenBelz 428 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 292

Last 30 days Overall leaderboard