web
You’re offline. This is a read only version of the page.
close
Skip to main content
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)
  • Community Member Profile Picture
    on at
    RE: codeactivity -vs- other activity classes for processes?

    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?

  • Verified answer
    ScottDurow Profile Picture
    21 on at
    RE: codeactivity -vs- other activity classes for processes?

    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.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Aric Levin - MVP Profile Picture

Aric Levin - MVP 2 Moderator

#2
MA-04060624-0 Profile Picture

MA-04060624-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans