I want to find the name and columns set in all Views of entity
of dynamic crm with the use of javascript.
This names for entity display in above image and columns which are set in view.
I want to find the name and columns set in all Views of entity
of dynamic crm with the use of javascript.
This names for entity display in above image and columns which are set in view.
"Saved Query" is the entity that holds all the data related to system views. However getting the columns will require some parsing as the "Grid" is stored as an xml in the "LayoutXml" attribute of the entity.
For e.g. to fetch views on "contact" entity:
OData:
FetchXml (Use SDK.js or XrmServiceToolkit):
Sample "LayoutXml" for "Active Contacts" view:
Parsing the xml for all cell elements you would get the view columns (e.g.):