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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

MS CRM Plugins

(0) ShareShare
ReportReport
Posted on by 5,514

MS CRM plugin

What is execution context for Asulynchronoys plugin and Synchronous plugins

Can we write 2 plugins for same entity

How will you take data backup of data in CRM 2013 to 365 upgrade

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Rawish Kumar Profile Picture
    13,758 on at

    have a look here : docs.microsoft.com/.../understand-the-data-context

    everything works fine however , the asyn pugin will leave a system job behind to be queued and executed later.

    to answer your second question - you can write n number of plugins on same entity.

    finally - are you online or onpremise , based on that there are number of ways to takebacup.

    P.S 

    next time try to seperate your questions and post each one seperately so that the thread is not messed up.

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    Hi Sandeep,

    What is execution context for Asulynchronoys plugin and Synchronous plugins?

    For both Synchronous and Asynchronous plugin execution context hold the entity information with the data and  some information about the Stage that the plugin is registered for as well as information about the ParentContext which provides information about any operation within another plug-in that triggered the current operation.

    https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/understand-the-data-context

    Can we write 2 plugins for same entity?

    You can write multiple plugin and different of same event for an entity. If you are going to register different plugin in same event you can set order in the plugin registration steps .

    https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/tutorial-write-plug-in

    How will you take data backup of data in CRM 2013 to 365 upgrade?

    Seems you are using on-premise , so you can go to DB server and take database backup , have a look below reference. In addition I would also suggest you to take solution backup as unmanaged.

    https://www.cobalt.net/2016/11/14/how-to-back-up-and-restore-a-database-in-a-crm-organization/

  • Verified answer
    Charles Abi Khirs Profile Picture
    3,569 on at

    Hello,

    I would like to add a note regarding "Can we write 2 plugins for same entity" that is: when you create multiple plugins on the same entity that will be triggered on the same message, stage and mode, you can define the Execution Order of these plugins so they are executed sequentially. Plugin 1 - Execution Order =1; Plugin 2 - Execution Order =2... and so on.

    By default the Execution Order is set to "1" for all the plugins steps and if you have the same steps registered with the same configuration, they will be triggered at the same time.

  • sandeepc Profile Picture
    5,514 on at

    No @goutam I just need answer of is IpluginExecutioncontext is used for asynchronous and IExecutioncontext is used for

    Synchronous plugin is that correct is not then which one we use for both

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans