Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Entity Form in Liquid

Posted on by

I know that we can display an entity list in web template using liquid.

So, is there any way that we can do it for entity form? Adding entity form using liquid in web template?

*This post is locked for comments

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Entity Form in Liquid

    Yeah, you can. I think you are looking for this answer:

    //Include an entity-list using liquid-tags.
    //Pass the name of the entity-list.
    {% include 'entity_list' key:'Display Contact Lists' %}

    You can also check this link:https://sank8sinha.wordpress.com/2020/07/27/liquid-code-tipscode-snippets-for-dynamics-portal/?wref=tp

  • Sahithi Profile Picture
    Sahithi on at
    RE: Entity Form in Liquid

    Hi Oliver,

    I can display the fields using the liquid objects, but then I would have no way to update the data.

  • Sahithi Profile Picture
    Sahithi on at
    RE: Entity Form in Liquid

    Thank you, this is what I was looking for

  • Verified answer
    Nicholas Hayduk Profile Picture
    Nicholas Hayduk 2,863 on at
    RE: Entity Form in Liquid

    Hi Sahithi,

    Yes, there is a Liquid tag for Entity Forms:

    {% entityform id: page.adx_entityform.id %} or {% entityform name: 'My Entity Form' %}

    Please note that this tag only works on Web Pages that are using a Page Template that is of type "Web Template".  If it's on a web page using a Page Template whose type is "Rewrite", this tag will not work.

    I just released a blog post that goes into a bit more details on the options, if you're interested:

    www.engineeredcode.com/.../dynamics-365-portal-how-does-the-entity-form-or-entity-list-get-on-the-page

    Nick

  • Suggested answer
    oliver.rodrigues Profile Picture
    oliver.rodrigues 4,052 on at
    RE: Entity Form in Liquid

    you can't access the entity form through liquid.. but you don't really need in my opinion

    as you have you probably have your record GUID in the parameter, you can retrieve your record, and access the attributes in your liquid

    docs.microsoft.com/.../liquid-objects

    {% assign account = entities.account['936DA01F-9ABD-4d9d-80C7-02AF85C822A8'] %}

    {% if account %}

    {{ account.name }} ({{ account.statecode.label }})

    {% endif %}

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans