locked
What is the workflow expansion task in CRM? RRS feed

  • Question

  • I was wondering what exactly is the workflow expansion task in CRM 4.0? I know when it is triggered, i'm just unsure of what it is, what it does, and why it is needed.

    Thanks!
    Thursday, September 17, 2009 6:29 PM

Answers

  • Check this

    http://blogs.msdn.com/crm/archive/2009/06/24/microsoft-dynamics-crm-4-0-iworkflowcontext-interface.aspx

    The Workflow Expansion Task plugin executes asynchronously for a particular message in CRM. For example if you have published a workflow to execute on Create of account, the Workflow Expansion Task plugin will be registered as a step on the Create message for the account entity when the workflow is published. The step will execute asynchronously. The Workflow Expansion Task plugin will retrieve all workflow rules that are published and that are configured to execute when the current message executes. So if you have more than one workflow that is published and should execute on the create message, the primary entity for the workflow is account, and you have access to the workflow based on the scope setting, those workflows will be retrieved.
    • Marked as answer by picsbyeric Thursday, September 17, 2009 7:10 PM
    Thursday, September 17, 2009 6:50 PM