web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to filter a column...
Power Apps
Answered

How to filter a column by logged in user's email attribute

(0) ShareShare
ReportReport
Posted on by 128

I have a custom table with a column "Email Address".  I have a view for this table which I'd like to filter by the current logged in user's email address.

The table looks like this...
table.jpg

The view's filter will be something like below, but how do I refer to the currently logged in user's email address? What should I use in place of Customer().Email?

filter.jpg

 

I have the same question (0)
  • Anupam.khasia Profile Picture
    366 on at

    Hi @cymorg1 ,

     

    There is not any OOB feature yet with which you will be able to dynamically place logged in user email address. Here is alternative to this . 

    * Create a lookup with System User entity 

    * On Create/Update of email address check if this email address exists for any user using workflow

    * if it exist than set new field (lookup) = User 

    * Create your view for new field (lookup) and select "Equal to logged in User"

     

    Let me if it helps you. 

     

    Thanks

    Anupam

    (please mark as resolved or give kudos if it really helps you)

  • EricRegnier Profile Picture
    8,720 Most Valuable Professional on at

    Hi @cymorg1,

    To supplement on the previous post, depending on your requirement, you don't necessary need that custom email address column. Out-of-the-box, you have modified by, created by and Owner (which the default is the created by user), you can then filter your view with either of those columns. Example:
    2021-02-22_12-38-56.png

    Hope this helps!

  • cymorg Profile Picture
    128 on at

    @EricRegnier Sorry, that isn't the answer.  CreatedBy and Owner entities are populated by User objects.  I'm looking to filter a list containing a Contact/Customer object by the logged in user's email (or other attribute) in a Power Apps Portal.  I'm trying to make a Portal that allows customer to see their own records, for example, a repair request that is created by staff (i.e. a User) and flagged to an existing customer (i.e. a Contact, or in this case by the customer's email address).  The customer will then login to the portal and see only records that are flagged to their email address.  I hope that makes sense.

  • Drew Poggemann Profile Picture
    9,287 Most Valuable Professional on at

    Hi @cymorg1,

    I think this was already answered in another post.  Can you take a look and hopefully it helps?  https://powerusers.microsoft.com/t5/Power-Apps-Portals/How-can-we-filter-record-on-portal-based-on-logged-in-user/td-p/536292 

     

    Thanks much!

     

    Drew

  • Verified answer
    EricRegnier Profile Picture
    8,720 Most Valuable Professional on at

    Gotchya, I didn't realize it was for Power Apps Portals. To achieve that there are a couple of simple steps to do:

    1. Setup Entity Permissions to allow the specific web roles to have access to contacts/account that they own
    2. Configure Entity List. Pick your Dataverse view, enable Entity Permissions, and configure Filter Conditions

    Hope this helps!

  • PowerAppsCom1 Profile Picture
    10 on at

    Is this solution applicable to Model Driven Apps?

    If yes how do I get started?

  • EricRegnier Profile Picture
    8,720 Most Valuable Professional on at

    Hi @PowerAppsCom1,

    Not quite for model-driven apps, you manage that through regular/Dataverse security roles. More info on the security model and creating roles:

    https://learn.microsoft.com/power-platform/admin/wp-security-cds?WT.mc_id=DX-MVP-5004271

    https://learn.microsoft.com/power-platform/admin/database-security?WT.mc_id=DX-MVP-5004271#create-or-configure-a-custom-security-role
    Cheers

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard