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 / Filter based on email ...
Power Apps
Unanswered

Filter based on email from table and User()

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello, what I am trying to do is filter a SQL table based on the user email that enters the app. it is a sharepoint list form.

 

The intention is that as soon as the user displays the form, the table filter based on the email:

Filter('[dbo].[table]'; tableEmail=User().Email), but it gives a warning and does nothing.

 

Any help or suggestions on how to aproach this would be great, thanks

Categories:
I have the same question (0)
  • Jeff_Thorpe Profile Picture
    6,085 Super User 2024 Season 1 on at

    I am assuming it is a delegation warning. To fix this and to make the query faster you will want to create a variable in the App OnStart or the OnVisible of the first screen. The formula for the variable would look like this: Set(gvUsersEmail , User().Email)

     

    Then in your Filter formula you would use the variable instead of the User function like this:

    Filter('[dbo].[table]'; tableEmail = gvUsersEmail )

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

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 364 Most Valuable Professional

#2
11manish Profile Picture

11manish 186

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 105 Super User 2026 Season 1

Last 30 days Overall leaderboard