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
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
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
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
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.
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
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,214 Most Valuable Professional
nmaenpaa 101,156