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 / filtering by logged in...
Power Apps
Unanswered

filtering by logged in user email

(0) ShareShare
ReportReport
Posted on by 557

 I'm trying to create a button that when I click on it, it will filter these 5 galleries - if the user().Email is equal to the email of the created by field.  Nothing is happening when I click on it, nor do I have errors within the formula.

 

I have this on the OnSelect property 

Filter('eCom Intake','Created By'.Email=User().Email)

 

Screenshot 2024-04-29 142922.png

Categories:
I have the same question (0)
  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @joel914823 - I would recommend replacing the Button control with a Toggle control, and then apply the below to the Items property of the Gallery control:

     

    Filter(
     'eCom Intake',
     !Toggle1.Value || 'Created By'.Email = User().Email
    )

     

    If you must use a Button control, apply the below to the OnSelect property to create a Local Context Variable:

     

    UpdateContext({ctx_myrecords: !ctx_myrecords})

     

    Then apply the below to the Items property of the Gallery control:

     

    Filter(
     'eCom Intake',
     ctx_myrecords || 'Created By'.Email = User().Email
    )

     

    Optional:

     

    On the Text property of the Button control, enter:

     

    If(
     ctx_myrecords,
     "Show My Records",
     "Show All Records"
    )

     

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 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard