locked
How to get the entity meta data inside plug-in - MS CRM 2011 RRS feed

  • Question

  • Hi All

    How to get the entity meta data inside plug-in in MS CRM 2011.

    It would be great anyone can provide the solution.

    Thanks

    Srikanth Reddy

    Wednesday, September 10, 2014 3:20 PM

All replies

  • Hi Srikant,

    RetrieveEntityRequest req = new RetrieveEntityRequest() { LogicalName = "contact", RetrieveAsIfPublished = true }; RetrieveEntityResponse res = (RetrieveEntityResponse)YourPluginService.Execute(req);

     res.EntityMetadata // you can get all metadata info about the entity



    Polat Aydın Crm Software Developer

    • Proposed as answer by Piyush Parate Monday, November 10, 2014 7:15 AM
    Wednesday, September 10, 2014 5:55 PM