web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Liquid Template - Show Portal Users Account Information

(0) ShareShare
ReportReport
Posted on by 260

Hi, Im trying to show the account information that is associated with a portal user.

I've got it showing through an the account entity form, but I want to be able to create the same as a liquid template.

Im following the adx studio liquid template examples, but I cant get it to show even the account name.

Can anyone help or send me in the right direction 

{% assign entity_logical_name = 'account' %}
{% assign account = entities[entity_logical_name][request.params.accountid] %}
{% if account %}
{{ account.name }}
{% endif %}

 

Thanks

Martin

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    You need proper Entity Permission configured to access that account

  • Suggested answer
    Lakshmisha Shetty Profile Picture
    on at

    Hi,

    Please refer to below link to get more understanding of Liquid template

    community.adxstudio.com/.../liquid-templates

    Mark as Answer if it helps you.

  • Prashanth Kamasamudram Profile Picture
    337 on at

    Did you got solution for this? how did you achived this , can you give me example liquid script?

    I have similar requirement.

    In header, based on current user account details I have to show or hide navigation link in header.

    If there is any sample code on how to achive this, it will be very helpful.

  • Martin McG Profile Picture
    260 on at

    Hi Prashanth,

    No I didnt get a solution.

    Anyone else, have an example of liquid code and which entity permission to change?

  • Suggested answer
    Syed Ibrahim Profile Picture
    6,257 on at

    You need to modify the webroles entity to access the data

  • Suggested answer
    Syed Ibrahim Profile Picture
    6,257 on at

    In addition , users details will be stored in contact entity not account entity in crm..you can get the user name by {{user.name}}

  • Martin McG Profile Picture
    260 on at

    Hi Syed,

    I want to get the users account name.

    What do I need to change in the Web Roles > Authenticated User

    {% assign entity_logical_name = 'account' %}

    {% assign account = entities[entity_logical_name][request.params.accountid] %}

    {% if account %}

     {{ account.name }}

    {% endif %}

  • Community Member Profile Picture
    on at

    There is an entity called Entity Permissions, we need to create a record for account entity in this entity and add web roles to this newly created record.

    EntityPermission2.PNG

    EntityPermission2.PNG

  • Suggested answer
    Jharana Baliyar Singh Profile Picture
    2,667 on at

    Hi Martin,

    Follow the below link:

    community.dynamics.com/.../231574

    Thanks,

    Jharana

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans