locked
Plugin code not executing when assigning case RRS feed

  • Question

  • Hello. I am using CRM 4.0. I have registered some C# code (using the Plugin Registration Tool) to run when a user assigns a case (incident) to another user. The main fields I used when registering the plugin to ensure it executes when a case is assigned, were the following:

    Message: Assign

    Primary entity: incident

    I then set a break point in my code, then tried testing it by logging into CRM and assigning a case to another user. However, the code does not stop at the break point and the assignment completes. I have used the debugger with other plugin projects and it is working fine.

    public void Execute(IPluginExecutionContext context)
    {
        DynamicEntity entity = null; // Break-point set here
    
        // rest of code not included to be concise
    }
    What could be the reason that the code is not trigged by assigning a case?

    Saturday, May 27, 2017 12:32 PM

All replies

  • Try using the Update message and select the "owner" from the filtering attributes.

    Sachith Chandrasiri

    Wednesday, May 31, 2017 11:16 PM
  • Try using the Update message and select the "owner" from the filtering attributes.

    Sachith Chandrasiri


    I tried setting the message to Update, and filtering attributes to Owner, but the breakpoint still not being hit. Also tried setting Pre Stage and Post Stage under step but plugin code still not running.
    Thursday, June 1, 2017 6:52 PM