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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer Service forum

Dynamics 365 Portal liquid template

(0) ShareShare
ReportReport
Posted on by

Hi Everyone,

Am trying liquid templates in dynamics 365 custom portal. I am learning how to use liquid tag and filters in D365 portal. i came across many blogs. But i don't know how to show custom entity in web templates using liquid tags. 

These are the links i checked:

https://docs.microsoft.com/en-us/dynamics365/customer-engagement/portals/liquid-objects#entities

http://dyn365apps.com/2017/09/13/dynamics-365-portals-liquid-templates-part-2-retrieve-data/

https://community.adxstudio.com/products/adxstudio-portals/documentation/configuration-guide/liquid-templates/objects/entities/

I tried this code to show data from custom entity in portal using web template .

{% extends 'layout_2_column_wide_right' %}
{% block main %}
<p>Employee ID(GUID) : {{request.params.id}}</p>
{%assign EMPID = request.params.id%}
{% if EMPID %}
<div class="alert alert=warning"><p>EMPID is not null</p></div>
{% assign EMP = entities['new_emp'][request.params.id}} %}
{% if EMP %}
<div class="alert alert=warning"><p>EMP is not null</p></div>
<p>{{ EMP.new_name }}</p>
{%endif%}
{%endif%}
{% endblock %}
I got this as output.

Employee ID(GUID) : 1485653e-1529-e911-9461-0003ff91023d

EMPID is not null

Thanks & Regards 

Karthik V

Categories:
I have the same question (0)

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Customer Service

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans