locked
how to retrive data from crm contact entity fields RRS feed

  • Question

  • how to get contact Entity fields from CRM2015 When trying get details I only get attributes information\ please answer me ineed this answer
    Friday, August 28, 2015 10:49 AM

All replies

  • did you try this code?

    try {
    
    RetrieveEntityRequest request = new RetrieveEntityRequest { EntityFilters = EntityFilters.Attributes, LogicalName = 'contact' };
    
    RetrieveEntityResponse response = (RetrieveEntityResponse) crmService.Execute(request); this.entityMetaData = response.EntityMetadata;
    
    } catch (Exception ex) {
    
    throw ex;
    
    }

    Thursday, November 5, 2015 1:49 AM
  • Hi,

    What is it you want to do.

    To see which fields are available on contact you can open the customizations from Settings->customization->customize the system and then expand entities/contact/fields and you will have the list of fields on the contact entity.

    Regards


    Rickard Norström Developer CRM-Konsulterna
    http://www.crmkonsulterna.se
    Swedish Dynamics CRM Forum: http://www.crmforum.se
    My Blog: http://rickardnorstrom.blogspot.se

    Thursday, November 5, 2015 7:40 AM
  • Hi,

    It seems you are trying to get contact entity metadata, refer this: https://msdn.microsoft.com/en-us/library/gg327860.aspx


    Mahender | Our Blog
    "Make sure to click on 'Vote as Helpful' and 'Mark As Answer', if you get answer of your question

    Saturday, November 7, 2015 11:14 AM
    Moderator