Want to retrieve MetaData of an entity lead. (Only attributes that are on Form) RRS feed

  • Question

  •  I am using CRM 2011 and C#.

    RetrieveEntityRequest response2 = new RetrieveEntityRequest()
                        EntityFilters = EntityFilters.All,
                        RetrieveAsIfPublished = true,
                        LogicalName = "lead",
                    // Execute the request
                    RetrieveEntityResponse entityResponse = (RetrieveEntityResponse)this._serviceProxy.Execute(response2);

    I want to retrieve the meta data of an entity. The above logic works for me. But i want to add a condition that
    Only attributes that are on Form will be retrieved.
    I have checked following links but the code mentioned in the blog returns all attributes that are published. But i want only the attributes that are on the entity FORM

    Any help will be highly appreciated

    • Edited by Alex Ben CRM Wednesday, September 5, 2012 8:43 AM
    Wednesday, September 5, 2012 8:38 AM


All replies