Skip to content

Instantly share code, notes, and snippets.

@fjeldstad
fjeldstad / notifications-dynamics-crm-2011.js
Last active August 29, 2015 14:00
Shims for form-level notifications in Microsoft Dynamics CRM 2011 (pre/post UR12) compatible with the notifications API from CRM 2013.
// Notification shims for Dynamics CRM 2011 (both pre and post UR12).
// The API is identical to the native (supported) notifications in
// Dynamics CRM 2013. Please note that calling undocumented JavaScript functions
// is not officially supported by Microsoft, which makes these shims
// "unsupported". But since the API is compatible with 2013 the upgrade path
// is straightforward (just remove the code completely, or leave them if you
// prefer - either should be fine).
if (typeof(Xrm.Page.ui.clearFormNotification) === "undefined") {
Xrm.Page.ui.clearFormNotification= function(messageId) {
var crmNotifications =