Skip to content

Instantly share code, notes, and snippets.

@NickPl
Created January 28, 2018 04:19
Show Gist options
  • Save NickPl/741ec5ead7813d28de2e5cee7fa1de4d to your computer and use it in GitHub Desktop.
Save NickPl/741ec5ead7813d28de2e5cee7fa1de4d to your computer and use it in GitHub Desktop.
Blog XrmMtl - Phone Call: blank notification
function OnLoad() {
if (!window.parent.$('span#Notification0_text').text()) {
var notificationId = window.parent.$('div#Notification0').attr('notificationid');
Xrm.Page.ui.clearFormNotification(notificationId);
if (Xrm.Page.context.getUserLcid() == 1036) {
Xrm.Page.ui.setFormNotification('Au moins un destinataire est marqué "Ne pas autoriser" les appels téléphoniques', 'ERROR');
}
else {
Xrm.Page.ui.setFormNotification('At least one recipient is marked as "Do Not Allow" phone.', 'ERROR');
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment