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 / PowerApps Find functio...
Power Apps
Answered

PowerApps Find function not working as expected

(0) ShareShare
ReportReport
Posted on by 249

I have a Yes/No field  in a SharePoint list that I want to hide for users whose email is not in a different text field (Emails) in the list. The email would be stored like this: UserA@contoso.com; UserB@Contoso.com

Assuming I am UserA, I should be able to see the field. I am showing and hiding the field using this formula in the Visible property: 

If(Find(Lower(Emails), Lower(User().Email)) > 0, true, false)

This works as long as I am the only user in the Emails field (field value = UserA@contoso.com). It stops working once there are two users (UserA@contoso.com; UserB@Contoso.com)

I have added a label to show how the Find function is behaving which looks like this: 

Find(Lower(Emails), Lower(User().Email))

The label is empty when there are two or more emails and 1 when I am only email. When I try the same values in Excel I get an actual number for both cases. Can anyone explain the difference?

Categories:
I have the same question (0)
  • Mr-Dang-MSFT Profile Picture
    Microsoft Employee on at

    @cooper33, can you clarify:

    • What type of column is containing these emails? Is this a Person column? If so, is it a multi-select or single-select Person column?
  • Verified answer
    cooper33 Profile Picture
    249 on at

    The column that contains the emails is just a text column that's populated based on a multi user column. I want to filter by current user being in either of those

     

    I ended up getting it to work by not using the find and instead filtering by the user field

    ClearCollect(RecordsCollection, Filter(RecordsCollection, User().Email = CCEC.Email))

     

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 846

#2
Valantis Profile Picture

Valantis 532

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard