Custom Workflow Activities

With a rudimentary understanding of Windows Workflow Foundation, we are now equipped to dive into ways that you can extend the native workflow functionality within Microsoft Dynamics CRM. The most common method for extending workflow functionality is by registering your own custom activities with Microsoft Dynamics CRM. This lets you reference them as custom steps in the workflow designer.

Implementing a Custom Activity

Because this is our first activity, we’ll keep it simple. We’ll create an activity that calculates the difference between two times and displays this difference as text, such as "5 months" or "12 minutes".

To get started, we’ll need an assembly to hold our custom activities.

Creating a custom activity assembly ...

Get Programming Microsoft Dynamics® CRM 4.0 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.