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

Notifications

Announcements

No record found.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans