Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Showing a "My" View to a Logged-In Portal Contact

(0) ShareShare
ReportReport
Posted on by

I have a requirement to show the "My Team's Active Projects" view on the Project entity to the contact logged in to the portal. So, this contact would be a team member on the Project record.

I can't see a way to configure a view to work with this criteria - the criteria-builder in the views in CRM have no way of referring a contact logged into the portal, that I'm aware of.

That leaves me the following options:

  1. Use an entitylist with a broader view (like "All Active Projects") and then try to filter down the entityview.records collection in the portal page before the entityview actually shows it (probably using Liquid, comparing the logged-in contact's name to the text field that includes the names of all project team members). But, if I were to do this, I would really like to filter the records before they hit the entityview, and show them in the entityview. There are other views available to the user here also, and I don't want to build my own custom table because it would look different than the other views.
  2. Filter the list and build a custom table.

I'm hoping for #1. Is it possible? I haven't been able to find documentation that says it is. If it can be done, I need some guidance on what the liquid or other code would look like.

*This post is locked for comments

  • Community Member Profile Picture
    on at
    RE: Showing a "My" View to a Logged-In Portal Contact

    Is it possible to take entityview.records, take only the records I want to keep and put them in a different collection, like this:

    {% for item in entityview.records %}

    {% assign records2 = item %}

    ...

    And then assign that second collection to the entityview, like this?

    {% assign entityview.records = records2 %}

    If there is a way to accomplish this, THAT'S what I'm looking for. Or, if I could simply configure a view to show the portal contact the projects where he was a team member, that would also work.

  • Community Member Profile Picture
    on at
    RE: Showing a "My" View to a Logged-In Portal Contact

    Thank-you Syed, but I am not looking to filter the list based on the contact's role.

    As the original post explained, I am trying to filter based on the relationship between the contact who is logged into the portal, and the project where he/she is a Team Member.

    PS - that code that you linked to is broken. I've already been through it, but it's so broken I'm not sure I can fix all the issues. I commented on it at the bottom of the page last week.

  • Syed Ibrahim Profile Picture
    6,257 on at
    RE: Showing a "My" View to a Logged-In Portal Contact

    Hi Andrew,

    Hope you are looking to filter your entity list bees on their role. If so pls follow the below link .

    docs.microsoft.com/.../render-entity-list-current-page

    Hope this helps. If suggestion resolved your query Mark it as verified to close the thread

  • Community Member Profile Picture
    on at
    RE: Showing a "My" View to a Logged-In Portal Contact

    Hi Ravi,

    Thanks for your response. How can you configure a portal user (a Contact in CRM)'s "access" to a project where the user is a member of the project team?

    That's actually off-track from my original question, but it might work. What I really want to do is filter the records in the view before the view shows them.

  • RaviKashyap Profile Picture
    55,410 Moderator on at
    RE: Showing a "My" View to a Logged-In Portal Contact

    Hi Andrew,

    By default, the records to the portal user will be displayed for which he/she have access too. So if you have 10 contacts and then out of those 10, portal contact has access to 2 contact then it will show only 2 records.

    If this is not what you are looking for then could you please share some more details?

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 > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
dkrishna Profile Picture

dkrishna 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans