Hi,
We have the Contact subgrid in the Account entity.
I would like to get the subgrid name through javascript, when user is creating the contact record through Account. Please advise the JS
Thanks!a
Hi James,
You have to configure a sub-grid on a form to get the name of the sub grid.
Under Components, expand Entities, expand the entity you want, and then select Forms. In the list of forms, open the form of type Main. Then on the Insert tab, Insert Sub-Grid.
Give the unique name to the sub grid as given in the below screenshot:
Refer to the below JavaScript code to get the name of the sub grid:
var contactGrid = formContext.getControl("contacts").getGrid();
var gridName = contactGrid.controlName;
Hope that helps!
Thanks
hope this article help you
social.microsoft.com/.../unable-to-get-the-subgrid-name-using-javascript-in-crm-2011
Please refer below url's to get subgrid control using js:
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156