I want to fetch attributes of particular entity in javascript.But don't want all attributes which are of no use or can't be able to see in crm form or in form editor. I get all attribute using SDK.Metadata.But It gives all the attributes.
Code:
SDK.Metadata.RetrieveEntity(SDK.Metadata.EntityFilters.Attributes, "contact", null, false, function (entityMetadata) { successRetrieveEntity(module, entityMetadata); }, errorRetrieveEntity);
Please suggest me the way from which I get only the attributes which are in form or able to see in form editor.