locked
Can workflow trigger execute plugin? RRS feed

  • Question

  • Hi,

     

    I have pre  sync plugin which is register Execute message. I also have one workflow and when I run workflow, I want to trigger my plugin and  get some information to use in workflow. What I want to know is when workflow execute, can it be triggered to plugin auctomatically?

    Please kindly share me some knowledge. Thanks in advance.

    Monday, June 28, 2010 3:29 AM

Answers

  • Plugins can only be triggered as a result of a request to the CRM Platform. Your 2 main options are:

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

    I'd normally suggest using the second option


    Microsoft CRM MVP - http://mscrmuk.blogspot.com  http://www.excitation.co.uk
    • Marked as answer by co coe Tuesday, June 29, 2010 9:34 AM
    Monday, June 28, 2010 5:05 AM
    Moderator

All replies

  • Plugins can only be triggered as a result of a request to the CRM Platform. Your 2 main options are:

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

    I'd normally suggest using the second option


    Microsoft CRM MVP - http://mscrmuk.blogspot.com  http://www.excitation.co.uk
    • Marked as answer by co coe Tuesday, June 29, 2010 9:34 AM
    Monday, June 28, 2010 5:05 AM
    Moderator
  • Hi David,

    Thanks for your clarification and advice. I'll proceed with second option.

     

    Tuesday, June 29, 2010 9:34 AM