Announcements
No record found.
Please help me!! In crm 2016. How can I get subgrid name in a entity when I don't know what 's this by javascript??
*This post is locked for comments
Go to form -> find your subGrid and double click on it.
In the following popup, you will see your sub-grid name.You need to use that name in your JavaScript files.
In the screenshot below, I am looking at the Opportunities grid on the Contact form:
If this answer helps you, please mark it as verified.
Cheers!
you can try this code
var ReqInvenDetails = window.parent.document.getElementById("SubgridName");
Could you please describe your requirement , why you need to get subgrid name using JavaScript ?
As this is configurable by System User using form editor-> Grid properties -> changing the name /unique name. So you can put hard code anywhere you can use in the Javascript function.
Hi
just google.
stackoverflow.com/.../dynamics-crm-get-name-of-subgrid-on-associated-view;lq=1
social.microsoft.com/.../unable-to-get-the-subgrid-name-using-javascript-in-crm-2011
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.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
JS-09031509-0 3
AS-17030037-0 2
Mark Eckert 2