CRM Online Retrieve using Plugin RRS feed

  • Question

  • Hi,

    Can anyone help me? It's already been a day and I can't use the plugin properly. I'm a newbie in plugin customization. Actually it's my first time customizing CRM using Plugin.

    I'm trying to update an entity record through lookup. Here's my code:

    Entity entity = (Entity)context.InputParameters["Target"];

    Guid parentRef = ((EntityReference)entity.Attributes["new_parentlookup"]).Id;

    var parentEntity = service.Retrieve("new_parententity", parentRef, new ColumnSet(new string[] { "new_estnoofhours" }));
    parentEntity["new_estnoofhours"] = entity["new_estnoofhours"];


    Can anyone help me please?


    Monday, November 16, 2015 2:04 PM

All replies