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)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
AS-17030037-0 Profile Picture

AS-17030037-0 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans