This post explains how to retrieve row data from subgrids in Dynamics CRM using JavaScript. Subgrids are used to display related records on a form. The code provided demonstrates how to use the getGrid() method of the formContext.getControl() function to get the grid object, which has a getRows() method that returns a collection of GridRow objects. Each GridRow object has a getData() method that returns a GridEntity object containing the row data. The code also includes examples of how to handle updates and calculate total amounts. Overall, this solution offers a more efficient alternative to using plugins for retrieving subgrid data.
Login now to access my digest by 365.Training