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

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:
I have the same question (0)
  • Verified answer
    Fubar Profile Picture
    8,338 Super User 2025 Season 2 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

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 Pages

#1
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard