Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

People Picker Filter Behavior

(0) ShareShare
ReportReport
Posted on by 15

Hi Teams.  I have an interesting behavior that hopefully you can help me with. I have a sharepoint list of applications with the owner as a people field. My canvas app has two filter headers, one the app name, the other a people picker. Using this filter method with a Text Input for the people filter:

ClearCollect(colGridData,Filter('Application List', StartsWith('Owner'.DisplayName, TextInputOwner.Text) && (IsBlank(AppNameSearch.Text) || IsEmpty(AppNameSearch.Text) || StartsWith('App Name',AppNameSearch.Text))));

 

The app filter does sort the gallery when clicking outside the input field - as expected.

The Owner text field, does not filter on clicking outside the search box - but does filter properly when triggering a button to Load Data.

 

I'm puzzled why one search box works when exiting (auto loading the data) and the other does not. Any thoughts?  I'm definitely struggling with the people picker.

Categories:
  • Verified answer
    HeyDave Profile Picture
    15 on at
    Re: People Picker Filter Behavior

    Thanks Randy. This helped me see the error in my ways & got me up and running.

  • Verified answer
    RandyHayes Profile Picture
    76,287 Super User 2024 Season 1 on at
    Re: People Picker Filter Behavior

    @HeyDave 

    This is because you are using these in behavioral actions.  You are better off if you want immediate results to skip duplicating all your data into app memory with a collection.

    Just set your Items property to:

    Filter('Application List', 
     StartsWith('Owner'.DisplayName, TextInputOwner.Text) && 
     (IsBlank(AppNameSearch.Text) || StartsWith('App Name',AppNameSearch.Text))
    )

     

    Also, don't use IsEmpty on a text value...IsEmpty is for records.

     

    I hope this is helpful for you.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,605 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,946 Most Valuable Professional

Leaderboard