CRM 2016 – Phone Call: blank notification – XrmMtl Skip to content

CRM 2016 – Phone Call: blank notification

Hi folks,

Today, I’m sharing a fix for a bug I found in my CRM. Basically, I opened the Phone Call form and found out a blank error notification. There was no business rule and no javascript in the form.

May9 1

After some research, I found this post describing the issue. But no fix. Since it was still not solved after the 8.1 update, I decided to make this little unsupported piece of javascript. I’m hoping it will be fixed in the next update.

[code lang=”js”]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’);
}
}
}
[/code]

Cheers,

Published inUncategorized