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)

Liquid: How to get count of child entity

(0) ShareShare
ReportReport
Posted on by 25

Just wanted to know can we get record count of child entity using Liquid in Dynamics portal. For example

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


I am not getting any output using 

{{account.new_child_entity.size}}

or

{{account.new_child_entity[0].id}}

I can get result using fetchXML, wondering if we can do it directly using reference entity? 

*This post is locked for comments

I have the same question (0)
  • Verified answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi,

    No, there is no method to get the count of child entity directly. One option which you have already explorer is to use fetchxml and retrieve the records.

    Hope this helps.

  • Suggested answer
    oliver.rodrigues Profile Picture
    4,052 on at

    if you have a subgrid in your form you can count the subgrid rows:

           var rows = $("#subgrid_Children .view-grid table").find("tbody > tr");

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 April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans