Created
January 28, 2018 04:19
-
-
Save NickPl/741ec5ead7813d28de2e5cee7fa1de4d to your computer and use it in GitHub Desktop.
Blog XrmMtl - Phone Call: blank notification
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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