In which scenarios shall we go for a Plugin and which scenarios shall we opt for a custom Workflow (iworkflow)
Hi,
The comparison and points are for Code Activity and plugins. Where I say workflow it means Custom Code Activity.
You need to think in perspective of workflow, because the Custom Code Activity is used in a workflow.
When it comes coding part, both look similar (except parameters). Both are .Net class libraries.
Only thing, differentiates them is custom code activities works in a workflow (process) and registered only for limited events. However, plugins can be registered on more supported events.
Hi Wahaj Rashid,
thanks for the detailed explanation,
I was particularly looking for the difference between an codeActivity workflow (which we build using c# code) and a plugin. from the development perspective, is there any advantage choosing one over the other ?
Thank you for your query.
When it comes to coding possibilities, I do not see any limitation in one or other.
Your decision should depend on on following:
In my opinion, Custom Code Activities should be preferred if you do not need to register your code on a special message. However, if your requirement is to intercept more complex events (like GrantAccess, RetreiveMultiple, you have to opt for Plugin.
Also, plugins can be used for more generic tasks as you can register same code with multiple entities (if your code handles it).
Here is a similar thread for your reference:
https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/200790/difference-between-custom-worklfow-and-custom-plugin#:~:text=A%20Custom%20Workflow%20Activity%20Plugin,configure%20some%20logic%20through%20the
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Rishabh Kanaskar 258
MVP-Daniyal Khaleel 164
Tom_Gioielli 121 Super User 2025 Season 2