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
Answered

Employee Directory

(0) ShareShare
ReportReport
Posted on by 2

I have a powerapp created where i can search for employees and view their employee info.  It is linked to our Office365.  I want to filter out all employees who have their account disabled and I am having issues doing that.

 

I have a search box where i can type in a name and then i hit the search button.  It then brings up a list of employees.  That works fine, but i want to filter that list to not include disabled accounts.  This is the code on the search button

If(Len(TextInputSearchUser.Text) > 0, ClearCollect(SearchUser, TextInputSearchUser.Text), Clear(SearchUser))

 

Any help would be appreciated.  Thank you

Categories:
I have the same question (0)
  • Verified answer
    RezaDorrani Profile Picture
    12,145 on at

    @JasonNikodym 

     

    On the list/gallery apply your filter on Items property as follows

     

    Filter(data,AccountEnabled=true)

     

    where data is your current list/gallery Items property value

     

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

    Thanks,
    Reza Dorrani, MVP
    YouTube
    Twitter

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
WarrenBelz Profile Picture

WarrenBelz 396 Most Valuable Professional

#2
11manish Profile Picture

11manish 134 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 101 Super User 2026 Season 2

Last 30 days Overall leaderboard