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)

Trying to show contact fullname - Liquid error: Value cannot be null. Parameter name: key

(0) ShareShare
ReportReport
Posted on by 260

Hi All,

I'm trying to show the contact full name using liquid.

However I'm getting an error message - "Liquid error: Value cannot be null. Parameter name: key"

Any help would be grateful.

{% assign entity_logical_name = 'contact' %}

{% assign contact = entities[entity_logical_name][request.params.contactid] %}

{% if contact %}

{{ contact.fullname }}

{% endif %}


*This post is locked for comments

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

    Hi Martin ,

    have you tried this?

    {% if request.params.contactid %}
    
    {% assign entity_logical_name = 'contact' %}
    
    {% if entities[entity_logical_name] and entities[entity_logical_name][request.params.contactid] %}
    
    {% assign contact = entities[entity_logical_name][request.params.contactid] %}
    
    {% if contact %}
    
    {{ contact.fullname }}
    
    {% endif %}
    {% endif %}
    {% endif %}

    Please let me know if you solve.

    If you found the answer helpful, please mark as Verified 

    Join my network on LinkedIn      Follow me on Twitter 

    Thank You & Best Regards

    Francesco Picchi

    Microsoft Dynamics CRM Consultant, Bologna+Milano, ITALY

    Independent Contractor

    http://www.francescopicchi.com

  • Martin McG Profile Picture
    260 on at

    Hi Francesco, Thanks for replying.

    I'm not getting the liquid error anymore, but unfortunately I can't see the contact.fullname value.

    Thanks.

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi Martin ,

    that is correct, probably one collection or params is not valued.

    You need to discover where is the problem.

    The code i passed to you is useful to hide the error, but i cant know why you dont get the value you expect.

    If you found the answer helpful, please mark as Verified 

    Join my network on LinkedIn      Follow me on Twitter 

    Thank You & Best Regards

    Francesco Picchi

    Microsoft Dynamics CRM Consultant, Bologna+Milano, ITALY

    Independent Contractor

    http://www.francescopicchi.com

  • oliver.rodrigues Profile Picture
    4,052 on at

    Martin

    did you set up Entity Permissions for the Contact entity ?

    also, how are the users logging in to the portal ?

    if they are already logging in as a Contact record, you should be able to use {{ user.fullname }} (once the user is logged in)

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