locked
In VS what's the difference between a Workflow Library and XAML Workflow Library in CRM 2013? RRS feed

  • Question

  • Hello,

    I need to build some Workflows that don't quite fit the stock steps in CRM, but I'm unsure on whether I need to use a Workflow Library or a XAML Workflow Library.  I understand neither can be edited or viewed within CRM, but is there a Pro or Con to using either when developing complex Workflows?  Also I've read about using Windows Workflow Foundation to write my Workflows, but is this just a component of Visual Studio?  Also is this only applicable on the XAML Workflows? 

    Thanks for any advise or input.

    Tuesday, June 9, 2015 12:14 PM

Answers

  • Hi,

    a custom workflow activity is written in C#. It allows you to create custom steps with their own custom business logic. A CWA appears as an additional step type you can add to a CRM workflow via the CRM workflow editor.

    A XAML workflow you write entirely in VS & is not editable in CRM workflow editor. It is written in VS as a Windows Workflow (i.e. XAML). A XAML workflow can invoke CRM steps and custom CWAs as mentioned above.

    • Proposed as answer by Caratacus Tuesday, June 9, 2015 3:31 PM
    • Marked as answer by Sam Alex Tuesday, June 9, 2015 3:37 PM
    Tuesday, June 9, 2015 3:31 PM

All replies

  • Hi,

    a custom workflow activity is written in C#. It allows you to create custom steps with their own custom business logic. A CWA appears as an additional step type you can add to a CRM workflow via the CRM workflow editor.

    A XAML workflow you write entirely in VS & is not editable in CRM workflow editor. It is written in VS as a Windows Workflow (i.e. XAML). A XAML workflow can invoke CRM steps and custom CWAs as mentioned above.

    • Proposed as answer by Caratacus Tuesday, June 9, 2015 3:31 PM
    • Marked as answer by Sam Alex Tuesday, June 9, 2015 3:37 PM
    Tuesday, June 9, 2015 3:31 PM
  • Caratacus, wonderful!  Thanks.  Any suggestions on good training tutorials, videos, books, etc that show how to build these?  


    Tuesday, June 9, 2015 3:37 PM
  • Download the Microsoft Dynamics CRM SDK, after extracting it you can find sample code under SDK\SampleCode\CS\Process\CustomWorkflowActivities\

    Halldór Jóhannsson

    Tuesday, June 9, 2015 3:47 PM