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)

Difference Between synchronous plugin and synchronous WorkFlow?

(0) ShareShare
ReportReport
Posted on by 483

Hello,

Can you please suggest what is the Difference Between synchronous plugin and synchronous WorkFlow? and Real time scenario where we cant achieve from Plugin can do it from workflow or why do we need Synchronous Workflow ? 

*This post is locked for comments

I have the same question (0)
  • vvshameer Profile Picture
    on at
    RE: Difference Between synchronous plugin and synchronous WorkFlow?

    A real time scenario where sync Workflow has advantage over sync plugin is that the execution scope implementation.

    For Example, if you have Case records generated in 2 different Business Units. You want to restrict the Plugin execution on case records to just one Business unit.  

    This can be neatly achieved by writing a custom activity and calling it from a sync Workflow by specifying scope as Business Unit.

    This can also be achieved in Plugin by writing lot of conditions inside Plugin code, and it is not a recommended way!

  • Suggested answer
    ARIFNIIT Profile Picture
    1,391 on at
    RE: Difference Between synchronous plugin and synchronous WorkFlow?

    In Real time workflow you can trigger workflow pre-Operation and post-Operation.

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Difference Between synchronous plugin and synchronous WorkFlow?

    Hi,

    another difference is that:

    For plugin you can register them on pre-Validation; pre-Operation and post-Operation step in order to achieve your different requirements.

    For workflow it always will be on post opretation.

  • Verified answer
    Community Member Profile Picture
    on at
    RE: Difference Between synchronous plugin and synchronous WorkFlow?

    Hi dkrishna ,

    the responses to your answers have been highlighted.

    Synchronous workflow or plugin, use it when you need:

    • your action done immediately (like check over data to eventually block the execution and advise user)
    • a series of consequential ctions , where you need to control action by action

    Asynchronous workflow or plugin, use it when you need:

    • You DONT need your action done immediately like not business-critical action (e.g. data fill) or bulk data actions that will cause a timeout (in cloud environment).

    Workflows and plugins use the same technology, but:

    • Workflows are useful for code re-use since they accept external parameters
    • Plugins are more flexible since you could access a larger set of behaviours

    Hope it helps.

    If you found the answer helpful, please mark as Verified 

    Join my network on LinkedIn      Follow me on Twitter 

    Thank You & Best Regards

    Francesco Picchi

    Microsoft Dynamics CRM Consultant, Bologna+Milano, ITALY

    Independent Contractor

    http://www.francescopicchi.com

  • Verified answer
    ARIFNIIT Profile Picture
    1,391 on at
    RE: Difference Between synchronous plugin and synchronous WorkFlow?

    Workflow can be executed on-demand while plugin can be registered only on predefined messages no on-demand option available.

    If you found the answer helpful, please mark as Verified  

  • dkrishna Profile Picture
    483 on at
    RE: Difference Between synchronous plugin and synchronous WorkFlow?

    Basically i want to know when do you go for mainly Synchronous plugin and Synchronous WorkFlow any specific scenarios?

  • Suggested answer
    Ak Negi Profile Picture
    320 on at
    RE: Difference Between synchronous plugin and synchronous WorkFlow?

    Hi

    Please check following link

    community.dynamics.com/.../221335

    If you found the answer helpful, please mark as Verified

    Thanks

    Arun Singh Negi

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Difference Between synchronous plugin and synchronous WorkFlow?

    Hi dkrishna ,

    Synchronous workflow or plugin, use it when you need:

    your action done immediately (like check over data to eventually block the execution and advise user)

    a series of action consequential, where to need to control action by action

    Asynchronous workflow or plugin, use it when you need:

    You DONT need your action done immediately like not business-critical action (e.g. data fill) or bulk data actions that will cause a timeout (in cloud environment).

    Workflows and plugins use the same technology, but:

    Workflows are useful for code re-use since they accept external parameters

    Plugins are more flexible since you could access a larger set of behaviours

    Hope it helps.

    If you found the answer helpful, please mark as Verified 

    Join my network on LinkedIn      Follow me on Twitter 

    Thank You & Best Regards

    Francesco Picchi

    Microsoft Dynamics CRM Consultant, Bologna+Milano, ITALY

    Independent Contractor

    http://www.francescopicchi.com

  • v22arvind Profile Picture
    65 on at
    RE: Difference Between synchronous plugin and synchronous WorkFlow?

    I don't think it's about technical limitation, you should be able to implement the requirement by either. I haven't explored D365 but plugin should be technically lighter in terms of footprint as workflows get tracked more?  It's about who does the change? a developer, who can quickly code the requirement in an existing plugin, or a BA who need to implement it quickly.

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Aric Levin - MVP Profile Picture

Aric Levin - MVP 2 Moderator

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#3
MA-04060624-0 Profile Picture

MA-04060624-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans