Getting to totalLineAmount in subgrid in Dynamics crm using JavaScript


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.


Article 19m

Login now to access my digest by 365.Training

Learn how my digest works
Features
  • Articles, blogs, podcasts, training, and videos
  • Quick read TL;DRs for each item
  • Advanced filtering to prioritize what you care about
  • Quick views to isolate what you are looking for right now
  • Save your favorite items
  • Share your favorites
  • Snooze items you want to revisit when you have more time