cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JasonNikodym
New Member

Employee Directory

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

1 ACCEPTED SOLUTION

Accepted Solutions
RezaDorrani
Dual Super User II
Dual Super User II

@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

View solution in original post

1 REPLY 1
RezaDorrani
Dual Super User II
Dual Super User II

@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

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

PA Community Call

Power Apps Community Call

Next call is happening on April 21st at 8a PST.

MBAS Carousel

Sign up for our May 4th event!

May the fourth be with you, join us online!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (40,624)