Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

How to use Liquid to show Parent Account on a Web Page using CRM Portals

Posted on by

Hi,

I'm trying to expose the Parent Account of the logged in contact in CRM Portals using Liquid Code.

I've been trying to follow below

{% assign account = entities.account['936DA01F-9ABD-4d9d-80C7-02AF85C822A8'] %}
{% if account %}
  {{ account.name }} ({{ account.statecode.label }})
{% endif %}
However, if never returns any value. I've passed the user.parentcustomerid.id to above, which should allow me to show data.

Does anyone have any example Liquid code to do this? I want to show a number of attributes from the Account Entity.





*This post is locked for comments

  • Martin McG Profile Picture
    Martin McG 260 on at
    RE: How to use Liquid to show Parent Account on a Web Page using CRM Portals

    Hi Chris, Did you manage to get the account name showing?

  • Suggested answer
    Nick.Doelman Profile Picture
    Nick.Doelman 1,947 Most Valuable Professional on at
    RE: How to use Liquid to show Parent Account on a Web Page using CRM Portals

    Yes. :)   For 8.2 on onward, entity permissions seem to be mandatory, I don't know the details but it has to do with some kind of security policy from Microsoft.

  • Chris Vine Profile Picture
    Chris Vine on at
    RE: How to use Liquid to show Parent Account on a Web Page using CRM Portals

    No I haven't. Do I need to?

  • Suggested answer
    Nick.Doelman Profile Picture
    Nick.Doelman 1,947 Most Valuable Professional on at
    RE: How to use Liquid to show Parent Account on a Web Page using CRM Portals

    Have you set entity permissions for the Account entity?  

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