Modes

You can set up plug-ins in synchronous or asynchronous mode. Synchronous mode starts the execution of the plug-in when the event is fired and blocks the CRM application process until the executed method finishes. This option is not recommended if you are performing a process that might take a long time to execute. Regardless of the method used, synchronous or asynchronous, a timeout limit of 2 minutes applies for plug-in executions. If your process needs more time, you will have to consider using a workflow or another custom background process.

Tip

If you want to prevent a record from being created or updated, this should be the desired mode in conjunction with the pre-stage (see the next section, “Stages”).

Asynchronous mode releases ...

Get Microsoft Dynamics CRM 2013 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.