locked
Firing a plugin when updating a field through workflow RRS feed

  • Question

  • Dear All; 

    i want to fire the plugin after the field updated through work flow please help

    Monday, June 18, 2012 10:35 AM

Answers

All replies

  • hi Anwar,

      2 options  to achieve this

    Register the plugin  on a message that will be invoked through a normal workflow  step
    Rewrite your plugin code as a custom workflow activity, which can be called directly from the workflow

    Thanks

    T.Vinoth

    • Proposed as answer by Vinoth Thiru Monday, June 18, 2012 11:34 AM
    Monday, June 18, 2012 11:33 AM
  • Hi Vinoth

    Register the plugin  on a message that will be invoked through a normal workflow  step

    can you explain me bit more on this option or any example

    Monday, June 18, 2012 11:36 AM
  • You need to register the plugin on update event of the entity.

    If you want to fire the plugin just on update of specific field. Use "Filtering Attribute" on step registeration.

    Have a look at my blog

    http://www.mscrmshop.blogspot.com.au/2012/02/use-of-filtering-attributes-during.html

    I hope this helps.


    If you find this post helpful then please "Vote as Helpful" and "Mark As Answer". Amreek Singh Senior CRM Consultant CDC Praxa Sydney, Australia http://mscrmshop.blogspot.com http://crm2011usersettings.codeplex.com

    • Proposed as answer by Amreek Singh Monday, June 18, 2012 12:06 PM
    • Marked as answer by anwar_addi Friday, July 13, 2012 1:04 PM
    Monday, June 18, 2012 12:06 PM
  • Hi Amreek Singh;

    i did the same what happening when i change any field on the form then the workflow runs and that changes the a pick list value so what my plugin is doing that when that pick list gets change that plugin should run i follow the same you mentioned in your blog but again plugin is running before the workflow

    Monday, June 18, 2012 1:06 PM
  • Hi buddy, chances are you registered your plugin is registered on synchronous event and workflow always run asynchronously.

    So plugin will run before workflow.  if you are not changing the picklist field on the form and it get triggered only in the workflow then, filtering attribute should work.


    If you find this post helpful then please "Vote as Helpful" and "Mark As Answer". Amreek Singh Senior CRM Consultant CDC Praxa Sydney, Australia http://mscrmshop.blogspot.com http://crm2011usersettings.codeplex.com

    Monday, June 18, 2012 1:31 PM
  • Hi Amreek ;

    I did the same i am not changing the pick list i am update through workflow and i have filtered the field on the form as well but still not firing

    Tuesday, June 19, 2012 9:03 AM