web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

codeactivity -vs- other activity classes for processes?

(0) ShareShare
ReportReport
Posted on by

Hello - I've implemented a few processes that call classes that implement CodeActivity, which implements System.Activities.Activity. Several other classes implement System.Activities.Activity, like NativeActivity and DynamicActivity.  Do you find yourself delegating most of your process code to CodeActivity classes? Or do you find yourself commonly using other Activity classes?

*This post is locked for comments

I have the same question (0)
  • Verified answer
    ScottDurow Profile Picture
    21 on at

    CodeActivity is the only base class you should use for custom workflow activities. I don't think any others are supported by the WF Sandbox.

  • Community Member Profile Picture
    on at

    Thanks Scott, the following url also seems to confirm CodeActivity as the single Activity to be used for CRM processes:

    community.dynamics.com/.../workflow-persistence-in-crm-2011.aspx

    "if you build new custom workflow activities for CRM 2011 you should use WF4 (System.Activities.CodeActivity)"

    Are you aware of any online Microsoft documentation that specifically spells out the rules/constraints around this?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans