knowledgecenter-breadcrum

Knowledge Center

04 Jul, 2022

How to retrieve data from an sub-grid using JavaScript in D365 CE?

Posted on 04 Jul, 2022 by Admin, Posted in Dataverse Dynamics 365 Dynamics-365 Sales

How to retrieve data from an sub-grid using JavaScript in D365 CE? Blogs

Introduction
In this blog, we will discuss how we can fetch data directly from sub-grid without using FetchXML in JavaScript.

It is always easy to fetch the data from the fields on form but what about fetching the data from the sub-grid added on the forms?

Here is how we can achieve this :

Example
Suppose we have Employee form with Skills sub-grid added to it. We want to fetch the names of  skills from sub-grid and append skill names in Skills field on Employee form.

The javascript code will look like :

Result

Comment

This is a Required Field

Loading

Recent Updates

Blogs
22 Sep, 2026

How to Create a Flyout Button with Multiple Actions on a Form in Dynamics 365

How to Create a Flyout Button with Multiple Actions on a Form in Dynamics 365 Introduction In model-driven apps, command…

READ MORE
Thumbnail Image
Blogs
16 Sep, 2026

Building Multi-Table Hierarchies with the Native Hierarchical Relationship Visualizer in Dynamics 365 Sales

How to Build Multi-Table Hierarchies in Dynamics 365 Sales   Introduction Dynamics 365 Sales has always supported hierarchies, but until…

READ MORE
Embed PowerBI Report To Form
Blogs
15 Sep, 2026

Embed a Power BI Report on a Dynamics 365 Form, Filtered to the Record You're Viewing

Most Power BI reports in a Dynamics 365 environment live somewhere the user has to go and find: a dashboard,…

READ MORE