locked
recommended way to capture newly selected incident owner in plugin? RRS feed

  • Question

  • Hello, when a user changes the Owner of an incident, is there a recommended way to capture the newly selected value in the PreCaseUpdate plugin?

    Currently, when I access preEntity.OwnerId, it refers to the orignal owning user, as expected, but targetEntity.OwnerId is null.  Any recommendations on how to get a handle to the newly selected incident owner?
    Wednesday, January 22, 2014 9:28 PM

All replies

  • Hi,

    Register the Plugin with the message Update in a child pipeline.

    Refer below links, they talk about the same issue with CRM 4.0 and its the same with CRM 2011.

    http://social.microsoft.com/Forums/en-US/995214bb-dab5-43de-b13f-5cfc08f5c6ec/ms-crm-40-plugin-assign-message-problem-while-editing-multiple-records?forum=crmdevelopment

    https://community.dynamics.com/crm/f/117/t/67819.aspx


    Please mark this post as an answer and vote it as helpful

    Ajay Chawla


    • Edited by Ajay Chawla Thursday, January 23, 2014 6:42 AM
    • Proposed as answer by Ajay Chawla Tuesday, January 28, 2014 6:04 AM
    Thursday, January 23, 2014 6:42 AM