Search code examples
dynamics-crm-2011dynamics-crmdynamics-crm-2013

Retrieve Entity View Attributes from a Plugin


In CRM for every entity, we have the base table and the view (which creates relationship to other entity and has much more attributes).

My question is that is it possible from a plugin to retrieve the attributes from the view instead of the base table?


Solution

  • By view you mean the View of an Entity? Like the view you use in Subgrids or at homepages of each entity?

    If so, my guess would be to get the FetchXml of the view you want, then run it on Plugin. After that you have a normal entityCollection Result from the fetchXml execution and you have all the data you can get from that view