Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Filtering Entity List in D365 Portal

(0) ShareShare
ReportReport
Posted on by 162

Hi All,

We have the following requirement need to be implemented on the D365 Portal

If Logged In user has account "ABC" then it should see all records of that entity list.

if Logged in user has an account other than "ABC"  records will get filtered based on the account.

We have used entity permission to filter the records based on the account. 

But how can we display all the records if the account is "ABC". 

Is there any way to show a specific view using liquid or any other approach to implement this?.

  • Suggested answer
    - Matt Bayes - Profile Picture
    890 on at
    RE: Filtering Entity List in D365 Portal

    Hi Amit,

    I've put some thought into your problem and think I have a solution.

    I haven't tested this yet but in theory it should solve it.

    Since you are using Entity Permissions to filter based on the related Account, we can utilize a similar method to give the Contact access to all of the records. As you are probably aware, Entity Permissions are based on Web Role(s) which can be used to have a specific role for this scenario.

    1. Create a Web Role called "ABC User" or something along those lines.
    2. Create an Entity Permissions for the entity in the list, with Global permissions for Read privilege.
    3. Create a workflow inside of CRM that will be used to assign the user the web role in step #1 anytime the Company Name field changes on the Contact.
      1. Make sure to verify if it has data - assign the role
      2. If it doesn't have data - unassign the role (the related account was removed)
      3. There is an out-of-box workflow activity under the Adxstudio custom assembly that should have an "assign web role" and "unassign web role".

    Number 3 above is to ensure the role gets applied automatically, but you can test by manually adding the web role in step #1 to the contact, login to the portal, and see if the list shows all.

    I believe Entity Permissions are similar to CRM security where it gives access to the records based on the highest level of privilege. In this case, if the user has the Global entity permission assigned they should get access to all records, but if they don't then they should get access to just the filtered records.

    If you have any questions just let me know, and I would appreciate you flagging this as answered if it does resolve your problem.

    Matt Bayes

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 225 Super User 2025 Season 1

#2
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 78 Super User 2025 Season 1

#3
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 47

Overall leaderboard

Product updates

Dynamics 365 release plans