Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

PLUGIN

Posted on by Microsoft Employee

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

  • CRM Crate Profile Picture
    CRM Crate 45 on at
    RE: PLUGIN

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

    www.crmcrate.com/.../

  • Suggested answer
    Alagunellaikumar Profile Picture
    Alagunellaikumar 6,210 on at
    RE: PLUGIN

    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

  • Suggested answer
    Nithya Gopinath Profile Picture
    Nithya Gopinath 17,074 on at
    RE: PLUGIN

    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

  • Verified answer
    tw0sh3ds Profile Picture
    tw0sh3ds 5,600 on at
    RE: PLUGIN

    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.

  • abhishek_255 Profile Picture
    abhishek_255 1,612 on at
    RE: PLUGIN

    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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans