{"id":6114,"date":"2014-04-13T03:00:34","date_gmt":"2014-04-13T03:00:34","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/13\/callout-v-s-plug-in-in-crm-4-0-collection-of-common-programming-errors-2\/"},"modified":"2014-04-13T03:00:34","modified_gmt":"2014-04-13T03:00:34","slug":"callout-v-s-plug-in-in-crm-4-0-collection-of-common-programming-errors-2","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/13\/callout-v-s-plug-in-in-crm-4-0-collection-of-common-programming-errors-2\/","title":{"rendered":"Callout v\/s Plug-in in CRM 4.0-Collection of common programming errors"},"content":{"rendered":"<p>Taken from CRM 4.0 SDK help file:<\/p>\n<p>Microsoft Dynamics CRM 4.0 maintains backward compatibility with callouts developed for Microsoft Dynamics CRM 3.0. At run time, the Event Execution Pipeline first executes any plug-ins that are registered in a given pipeline stage before executing any Microsoft Dynamics CRM 3.0 callouts registered in that same stage.<\/p>\n<p>The callout method return values of <b>PreCalloutReturnValue.Continue,<\/b> <b>PreCalloutReturnValue.Abort,<\/b> and <b>PreCalloutReturnValue.Stop<\/b> are supported. However, a <b>Stop<\/b> is now equivalent to an <b>Abort<\/b> except that a standard error message is displayed to the user instead of a custom message. Also, returning a <b>Stop<\/b> or <b>Abort<\/b> from a callout has no effect on the execution of any registered plug-ins since all plug-ins are executed before any registered callouts are executed.<\/p>\n<p>The <b>onerror<\/b> attribute of the <b>subscription<\/b> tag in the callout configuration file (callout.config.xml) is not supported by Microsoft Dynamics CRM 4.0. If a callout throws an exception or allows an exception to be passed back to the platform, the exception message is displayed in a dialog of the Web application even if <b>onerror=&#8221;ignore&#8221;<\/b> is specified in the callout configuration file.<\/p>\n<p>For more information, see the Microsoft.Crm.Callout.PreCalloutReturnValue topic in the Microsoft Dynamics CRM 3.0 SDK.<\/p>\n<p>A limitation of using Microsoft Dynamics CRM 3.0 callouts is that the callouts are not able to take advantage of any new Microsoft Dynamics CRM 4.0 capabilities such as asynchronous execution, database deployment, rich plug-in context, and infinite loop detection.<\/p>\n<p>For more information on how to develop and register Microsoft Dynamics CRM 3.0 callouts, see the Microsoft Dynamics CRM 3.0 SDK.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Taken from CRM 4.0 SDK help file: Microsoft Dynamics CRM 4.0 maintains backward compatibility with callouts developed for Microsoft Dynamics CRM 3.0. At run time, the Event Execution Pipeline first executes any plug-ins that are registered in a given pipeline stage before executing any Microsoft Dynamics CRM 3.0 callouts registered in that same stage. The [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6114","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6114","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6114"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6114\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}