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
Workflow Project
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.
Important |
|---|
| 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.
Field Description Name
The name of the workflow activity.
Friendly Name
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.
Description
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
"None"to"Sandbox". -
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.
Note |
|---|
You may get the error: Error registering plug-ins and/or workflows. Public Assembly must have public key after you have signed the assembly as described in step 6, when the solution contains a plug-in project that is not signed. All plug-in and workflow library projects must be signed. |
See Also
Concepts
Install or Uninstall the Developer ToolkitDeveloper 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 Resources
Developer Toolkit for Microsoft Dynamics CRMCustom 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.
Important