Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

How to use Liquid Markup to grab entity (which is linked to Users Contact entity) record

Posted on by Microsoft Employee

Hi, 

I'm looking to create a customer facing portal that shows data on the product they're purchasing. 

The Portal users Contact has a 1:N Relationship to the product entity, called Plots.

I'd like them to be able to see the plot they're linked to and information stored in the entities fields. But only that 1 entity and not a list of all plots.

I can't find much information around, so any help is greatly appreciated.

thanks,

Max

  • David Carr Profile Picture
    David Carr 45 on at
    RE: How to use Liquid Markup to grab entity (which is linked to Users Contact entity) record

    Hi Max,

    I agree with Nicholas, you don't need Liquid Markup to do this.  This is part of the magic of Portals, it understands the relationships between CDS entities.  

    On a Contact Entity form, in the main CRM admin section (Advanced Settings in the new UI), create a sub-grid for Plots.  You can see in CRM that it only shows you the Plots linked to the one Contact whose form you opened.

    The same should work in the Portal: if you create a Primary Navigation Item that is an entity list for Plots, when a Contact signs in, and they click on the Plots menu item, they should see a list of only the Plots linked to the signed-in Contact.

    HTH,

    Dave

  • Suggested answer
    Nicholas Hayduk Profile Picture
    Nicholas Hayduk 2,863 on at
    RE: How to use Liquid Markup to grab entity (which is linked to Users Contact entity) record

    Hi Max,

    Entity Permissions will be your friend here - this is exactly what they are meant for.

    Entity Permissions restrict access to records based on how they are related to the contact that is logged in.  So you'd setup an Entity Permission with "Contact" scope, and select the relationship to Plots.  Then, associate that Entity Permission to the Contact using a Web Role, and you should be good to go.

    For more info:

    docs.microsoft.com/.../assign-entity-permissions

    Nick

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans