Skip to main content

Notifications

Announcements

No record found.

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

  • Suggested answer
    Jharana Baliyar Singh Profile Picture
    Jharana Baliyar Singh 2,665 on at
    RE: Liquid Template - Show Portal Users Account Information

    Hi Martin,

    Follow the below link:

    community.dynamics.com/.../231574

    Thanks,

    Jharana

  • RE: Liquid Template - Show Portal Users Account Information

    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

  • Martin McG Profile Picture
    Martin McG 260 on at
    RE: Liquid Template - Show Portal Users Account Information

    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 %}

  • Suggested answer
    Syed Ibrahim Profile Picture
    Syed Ibrahim 6,257 on at
    RE: Liquid Template - Show Portal Users Account Information

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

  • Suggested answer
    Syed Ibrahim Profile Picture
    Syed Ibrahim 6,257 on at
    RE: Liquid Template - Show Portal Users Account Information

    You need to modify the webroles entity to access the data

  • Martin McG Profile Picture
    Martin McG 260 on at
    RE: Liquid Template - Show Portal Users Account Information

    Hi Prashanth,

    No I didnt get a solution.

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

  • RE: Liquid Template - Show Portal Users Account Information

    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.

  • Suggested answer
    RE: Liquid Template - Show Portal Users Account Information

    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.

  • RE: Liquid Template - Show Portal Users Account Information

    You need proper Entity Permission configured to access that account

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,430 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans