Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Unanswered

Filter OOTB entity list in Liquid, without losing the OOTB entity list essence

Posted on by 10

Requirement: Web role with employee and payroll admin can see the cases created by themselves and can also see the cases created by all payroll admins. i.e. all the cases with contact level access and other account-level cases with filtered by logged-in user and further filtered by a specific column.

 Options tried that didn’t solve the issue :

  1. Client-side filtering: We can add a filter on data after loading it on the client screen. But,  
    1. As data will filter after loading from the server and if data is more than to maintain the paging on the client-side is not conceivable.
    2. There might a possible scenario, where the script may fail on any browser and due to that all cases of other users could be visible to log-in users and it would be a major data breach and not a sustainable solution.

 Server-side filtering:  To show the employee cases along with payroll admin cases,

    1. we need to filter the data on the basis of payroll admin followed by a logged-in user.  But, due to technical constraints on the portal, there is no such provision to pass dynamically logged-in user id from the available filtering options on the portal. So, it is hard to get the logged-in employee data along with payroll admin data in one go.

 

  1. Filter Fetch XML: one option on Entity List is to add filter criteria, but it doesn't provide the option to pass dynamically logged-in user id. Also, it shows the filter conditions on UI, which we don't want
  2. Multiple entity list: Multiple entity list is another option, but it will duplicate the records also, it requires lots of views. Also, the view doesn’t have the option to filter data dynamically by logged in user-id

 

  • Create Custom Table by Fetch XML: It requires a lot of development effort and will increase maintenance effort as well.

 

The solution, which we are looking for:

  1. Filter OOTB entity list in Liquid, without losing the OOTB entity list essence. i.e No custom development required to build the table from scratch 
  2. Pass dynamically logged-in user id into CRM views to filter the records, while preparing in the view or while configuring entity list for views.  
  • oliver.rodrigues Profile Picture
    oliver.rodrigues 4,052 on at
    RE: Filter OOTB entity list in Liquid, without losing the OOTB entity list essence

    We highly recommend users to migrate to PowerUsers community for new Portal questions:

    powerusers.microsoft.com/.../PowerAppsPortals

    ------------

    Have you looked into Web Roles and Entity Permissions?: docs.microsoft.com/.../assign-entity-permissions

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans