Create and Deploy Workflow Libraries Using the Developer Toolkit
Your solution must contain a workflow library project before you can create a plug-in. For more information about how to add a workflow library project, see Create a New Developer Toolkit Project.
For more information about creating custom workflow assemblies, see Custom Workflow Activities (Workflow Assemblies) for Microsoft Dynamics CRM.
In This Topic
With the Microsoft Dynamics CRM December 2012 Service Update, workflow activities can be deployed to Microsoft Dynamics CRM Online as well as Microsoft Dynamics CRM 2011 on-premises.
|If your organization has been updated to Microsoft Dynamics CRM Online Fall ’13, please use the latest version of the SDK. Download the updated SDK package for Microsoft Dynamics CRM 2013 and CRM Online Fall ‘13.|
The workflow project provides support for implementing custom workflow activities. Workflow activities that are added to the project that are based on the CRM workflow activity template accelerate the starting point for development. The class generated from the template simplifies some of the common code that is required by many workflow activities including:
Obtaining execution context.
Obtaining the tracing service.
Instantiating the Organization Service proxy.
Create and Deploy a Workflow Library
Use the following procedure to create and deploy a workflow library:
To Create and Deploy a Workflow Library
In the workflow project, right-click the workflow project node and select Add and then select New Item.
In Add New Item – Workflow dialog box, in the Dynamics CRM group of installed templates select the Workflow Activity Class template.
Enter the Name of the class you would like to be generated, and then click Add.
In the Custom Workflow dialog box specify field values for your workflow activity according to the descriptions in the following table.
The name of the workflow activity.
A more user friendly name for the type.
Activity Group Name
The name of the submenu added to the main menu in the Microsoft Dynamics CRM process designer.
A description of the workflow activity.
Open the generated class and add your custom workflow business logic where indicated by the comment
// TODO: Implement your custom Workflow business logic..
In the Properties of the workflow project, on the Signing tab, check the Sign the assembly check box and set the strong name key file of your choice.
At a minimum, you must specify a new key file name and do not protect your key file that uses a password.
If you are deploying your workflow activity to Microsoft Dynamics CRM Online, you must edit the RegisterFile.crmregister file. Locate the existing IsolationMode attribute for the workflow and change the value from
Right-click the CRMPackage project and select Deploy.
This builds the dependent projects and deploys the workflow activity to the Microsoft Dynamics CRM server. Any subsequent changes to the workflow activity are pushed to the server during the build and deploy process.
You may get the error:
ConceptsInstall or Uninstall the Developer Toolkit
Developer Toolkit Features
Create a New Developer Toolkit Project
Deploy a Solution Using the Developer Toolkit
Create and Deploy Plug-ins Using the Developer Toolkit
Create and Deploy XAML Workflows Using the Developer Toolkit
Create and Deploy Web Resources Using the Developer Toolkit
Other ResourcesDeveloper Toolkit for Microsoft Dynamics CRM
Custom Workflow Activities (Workflow Assemblies) for Microsoft Dynamics CRM
Microsoft Dynamics CRM 2011
Send comments about this topic to Microsoft.
© 2013 Microsoft Corporation. All rights reserved.