Custom Workflow Activities
[Applies to: Microsoft Dynamics CRM 4.0]
Custom workflow activities are supported only in Microsoft Dynamics CRM 4.0, not in Microsoft Dynamics CRM Online.
For more information about how to build custom workflow activities in the Windows Workflow Foundation, see this topic in the MSDN Library: Build Custom Activities to Extend the Reach of Your Workflows.
To develop Microsoft Dynamics CRM workflow activities, use the following tools and components:
- Microsoft Visual Studio 2005
- Windows Workflow Foundation
- Microsoft Dynamics CRM 4.0
- A valid user account on Microsoft Dynamics CRM 4.0
The following assemblies must be added to your project. They can be found in the SDK\Bin folder.
For more information, see About the Assemblies.
Registering Custom Workflow Activities
After your custom workflow activity has been compiled, you have to register this assembly as a plug-in. Your workflow will then appear in the workflow form in the Microsoft Dynamics CRM Web application.
This SDK includes a registration tool to improve developer productivity. For more information about the tool sample code, see Sample Code. For a walkthrough, see Build the Plug-in Registration Tool and Registering a Plug-in using the Plug-in Developer Tool.
In This Section
Describes how to write a custom workflow activity by adding attribute metadata.
Describes how to get and use a reference to the CrmService within a custom workflow activity.
Describes how to register your workflow assembly.
Describes how to use your custom workflow activity when you create a workflow in the Microsoft Dynamics CRM workflow form.
Explains how to debug a custom workflow activity.
Shows sample code for custom workflow activities.
Provides information about a set of classes that expose Microsoft Dynamics CRM Workflow activities and about the classes that are used to store workflow definitions, dependencies and the workflow log on the Microsoft Dynamics CRM database.
Walks through the steps needed to create a custom workflow activity, register it and use it from the workflow designer.
© 2010 Microsoft Corporation. All rights reserved.