locked
Change owner of record on record creation using preValidation plugin? RRS feed

  • Question

  • Hello Friends,

    Again I need your guidance, I want to change owner of account on account creation using preValidation plugin with Create message. I want to fill a field which already has a value. When I tried this-

    entity.Attributes.Add("ownerid", new Guid("XXXXXXX"));

    received this exception - "An item with the same key has already been added"

    Please tell me how to change fields value which already has value using plugin.

    Thanks,


    -- NMathur

    Monday, February 20, 2012 4:59 AM

Answers

  • Hello Friends,

    I found this post very useful -

    http://stackoverflow.com/questions/7173482/crm-2011-assign-new-owner-to-appointment-there-should-be-only-one-owner-part

    Thanks,


    -- NMathur

    • Marked as answer by nmathur Monday, February 20, 2012 6:31 AM
    Monday, February 20, 2012 6:31 AM