Plugin: Pre stage, attribute value RRS feed

  • Question

  • Hi, I am developing a plugin to be registred on the pre-stage update message.

    I need to read the value of a field (as changed by the user). But since the plugin must be registred in the PRE-stage, the value being retrieved is the previous value and not the users new value.

    How can I get the new value of this field in pre-stage message?


    Wednesday, November 18, 2009 2:19 PM


  • Hi, Darren.

    If field update invokes plugin triggering you can retrieve new value from context like:

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

    and then you can retrieve new field's value from this entity.

    Truth is opened the prepared mind My blog - http://a33ik.blogspot.com
    Wednesday, November 18, 2009 2:25 PM