Display external database records in ms dynamic CRM subgrid RRS feed

  • Question

  • Hi, 

    I am not able to set lookup fields on ms crm sub grid from external database.

    I tried with the retrieve multiple plugin as:

    get the data from external database in datatable 

    EntityCollection entityCollection= (EntityCollection)context.OutputParameters["BusinessEntityCollection"];

    Entity anyEntity= new Entity("entity");

    anyEntity.Attributes["new_customerid"] = new EntityReference("contact", new Guid("B26EF3E7-BD68-E411-9447-00155D010B06"));

    anyEntity.Attributes["new_address1"] ="values from datatable";


    Except lookup type field I am able to bind all the fields to the sub grid from external database.

    Tuesday, December 2, 2014 4:41 AM