Create and deploy workflow libraries using the Developer Toolkit
Applies To: Microsoft Dynamics CRM 2013, Microsoft Dynamics CRM Online
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).
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:
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, select 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)
Microsoft Dynamics CRM 2013 and Microsoft Dynamics CRM Online
Send comments about this topic to Microsoft.
© 2014 Microsoft Corporation. All rights reserved.