locked
Updating Email Entity Desciption field (Plugin) RRS feed

  • Question

  • Hi everyone,

    I have a plugin that is registered in the Pre-Operation of the create of an Email.

    I want to replace whatever is in the Email Description to "Hello World".

    This is meant to be really simple. But my email entity doesn't get updated but it keeps the existing email description message after I send the email.

    Here is a sample of my code:

    Entity email = (Entity)pluginExecutionContext.InputParameters["Target"];
    
    email.Attributes["description"] = "Hello World";

    I have debugged my code and this is basically the last line of code that it hits.

    I believe I do not have to service.update as the plugin is registered in the pre-operation stage.

    Anyone know where I am going wrong??

    Monday, January 13, 2014 10:29 PM

All replies