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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

PLUGIN

(0) ShareShare
ReportReport
Posted on by

Hello Friends,

When we will prefer plugin and when we will go with the workflow, and differences between asynchronous and synchronous plugin.

With regards,

Praveen kumar C

*This post is locked for comments

I have the same question (0)
  • abhishek_255 Profile Picture
    1,614 on at

    Hi -

    Plugins and workflow both are used to automate process in CRM. Plugin is used by the developers where an assembly is registered into CRM is responsible for doing operations on specific event/message (Create/Update/Delete) of an entity record.

    Workflow can be used by both developers and business/CRM users. However workflow doesn't provide flexibility that plugin does, and have limited set of operations.

    For synch and async differences I would recommend to you to understand Event execution pipeline in depth.

    Best Regards,
    Abhishek

  • Verified answer
    tw0sh3ds Profile Picture
    5,600 on at

    Hi,

    Plugin is something that that just have to write from scratch in .NET. Workflow has a designer in CRM, so you can perform some of the logic just by clicking in the designer. You can also create a Custom Code Activities for workflows, which are like plugins - a piece of custom code in .NET. It's really up to a specific scenario when to use one or another. If some action is simple for example you have to send a notification when a record is created - then probably a workflow will do the job. If it's more complex for example requires to retrieve some data from CRM - probably you should use plugin.

    As for async and sync plugins it's the same as with workflows:

    community.dynamics.com/.../221335

    so basically async plugin will run in the background and user will not know that it runs. Sync plugin will run during the operation so for example if you have plugin on Post Create, creation will not finish until plugin execution finishes.

  • Suggested answer
    Nithya Gopinath Profile Picture
    17,078 on at

    Hi Praveen Kumar,

    Both workflows and plugins helps us to automate actions in Microsoft Dynamics CRM.

    Plugin are separate .NET programs we write to accomplish a required task while workflows are created by us in the CRM itself according to the logic we require in the UI provided. In order to decide which one to select there are a certain scenarios. Please refer the following blogs. They give us a good idea of which one to choose.

    blogs.msdn.microsoft.com/.../plug-ins-vs-workflows-in-microsoft-dynamics-crm

    www.powerobjects.com/.../workflows-vs-javascript-vs-plugins-dynamics-crm

    community.dynamics.com/.../real-time-workflow-or-plugin

    www.magnetismsolutions.com/.../when_should_i_use_plug_ins_vs_custom_workflows

  • Suggested answer
    Alagunellaikumar Profile Picture
    6,212 on at

    Hi

    In CRM, you have to always choose workflow first, If there is any difficulties to accomplish in workflow you can go ahead with plugin.

    Workflow can be created any Business function people.

    If you have any complex task developer then achieve it by plugin.

    Synchronous plugin

    CRM action will not complete(browser hangs wait for plugin to execution complete) until your plugin code execute

    ASynchronous plugin

    It is a background process. If CRM action completes then browser wont wait for plugin execution complete. So immediate response not display to the user

  • CRM Crate Profile Picture
    45 on at

    Hi, to understand core concepts of Plugin from the below link:

    www.crmcrate.com/.../

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans