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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Liquid entities object doesn't seem to work at all

(1) ShareShare
ReportReport
Posted on by

Hi all

I am a bit new to liquid here and I am not sure if my problem is syntax or something else.

I have written the following simple liquid code in a web template:

{% block main %}

{% assign contact = entities.contact['1319D80D-920F-E311-837C-005056A6556F'] %}

Hello, {{ contact.fullname }}.

{% endblock %}

I have created a new page which uses this web template. In the content area the only thing that renders is:

Hello, .

This tells me my liquid is being executed because I am seeing the text. The GUID is definitely a correct GUID for a contact in this CRM.

Where have I gone wrong? Contact always comes back empty.

Thanks!

James.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Arpit Shrivastava Profile Picture
    7,518 User Group Leader on at

    Hi James,

    Make sure you have been assigned webroles to the logged In Portal user and given entity permission to the contact entity.

    Cheers

    Arpit

  • Community Member Profile Picture
    on at

    Thanks Arpit - I assumed admin users had universal entity permissions but they don't! Back in business...

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans