Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

D365 Portal Liquid - Return Url

Posted on by 260

Hi all, 

I'm trying to return a list of links from an entity list.

Im using the liquid code below, but cant return the url.

Any help would grateful.

Martin

{% entitylist key: page.adx_entitylist.id %}
  {% entityview logical_name: 'my_entity_name' name:'My Entity List', page_size:20 %}
    {% for item in entityview.records %}
      
         <a href="{{ item.id.url}}">{{ item.name}}</a>
        
    {% endfor %}
  {% endentityview %}
{% endentitylist %} 


*This post is locked for comments

  • Suggested answer
    Nicholas Hayduk Profile Picture
    Nicholas Hayduk 2,863 on at
    RE: D365 Portal Liquid - Return Url

    Hi Martin,

    What type of entity is in the list?  Only certain entities have a URL (for example, Web Pages).

    If in your example the entity was Web Pages, the following Liquid should work:

    {{ item.url}}

    But if it's a custom record type, they won't have URLs associated with them.

    You can find out more here:

    community.adxstudio.com/.../entities

    Nick

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans