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 Pages / Filterting EntityLists...
Power Pages
Answered

Filterting EntityLists by 2 contact fields

(0) ShareShare
ReportReport
Posted on by 44

Hi Experts I am trying to filter an entity list by 2 different fields on a case. Here is my setup:

 

Verceti87_0-1663607056843.png

 

Verceti87_1-1663607116413.png

 

How can i filter based on both primarycontactid and authorized agent so that when both of these users log in, they will see the same case record?

 

Thanks

 

 

 

 

Categories:
  • Verified answer
    Fubar Profile Picture
    17 Super User 2026 Season 1 on at

    Several ways you could do it

    • Have the List without any filtering of the Contact records, and control it via Table Permissions i.e. (Table Permission to the Primary Contact lookup and a Table Permission to the Agent Lookup, assign both to one or more Web Roles that you assign to your Contact.
    • On the Views that you are going to use for that List, add both fields to the condition as an OR and select any Contact record for each Lookup so you can save the view definition (this is a now undocumented feature from back in the Adx days, Contact lookup  in a View will resolve to the currently logged in Portal User's contact record irrespective of what record is populated in the query in Dataverse).
    • Create 2 Lists and use different Filter Conditions (as per your screen shot).  For this to work well you need some other way of telling a Contact would be the Agent etc so you can put an IF statement in a Web Template and switch to the respective List (or have 2 menu options one for Agent List and the other for  Contact List)
    • Custom Web Template with FetchXML and build your own list from the results.

    (and of course will need relevant Table Permissions to each of the Lookup fields)

  • Verceti87 Profile Picture
    44 on at

    Wow thank you so much. Your first method worked like a charm!

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

Leaderboard > Power Pages

#1
M Bilal Khan Profile Picture

M Bilal Khan 139

#2
Mohsin Ali Profile Picture

Mohsin Ali 41

#3
11manish Profile Picture

11manish 21 Super User 2026 Season 2

Last 30 days Overall leaderboard