Tips and Tricks Dynamics CRM 2013 and Dynamics CRM 2011: Remove CRM generic script error popup

Many times user in CRM system complain that they keep receiving this error message from CRM system:

clip_image001

This can be removed by following user setting. Ask your users to Go to personal settings-> privacy

clip_image003

Select the last option as in the above screenshot and click ok.

IF you want to do it for all your user base(in case of on-premise), you can fire an unsupported backend query:

update UserSettingsBase

SET ReportScriptErrors = 3

For online environment, you can fire update using organization service.

Note: This will work for dynamics crm 2011, i have tested it from UR 12 and above. Once you remove this setting, no reports will be sent to Microsoft for script errors. In case you need to resolve some script errors, you can always enable it back from user personal privacy settings.

Hope it helps!

Advertisement

Set Form and Field notifications CRM 2013 JavaScript New feature

Set field notification

Xrm.Page.getControl(fieldname).setNotification(“Notification message”);

Clear field notification

Xrm.Page.getControl(fieldname).clearNotification();

Set form notification

//First parameter is message, second is notification type, third is optional id parameter

Xrm.Page.ui.setFormNotification(‘Error! Message’,’ERROR’,’1′);

Xrm.Page.ui.setFormNotification(‘Warning!Message’,’WARNING’,’2′);

Xrm.Page.ui.setFormNotification(‘Information! Message’,’INFORMATION’,’3′);

Clear form notification

//Pass parameter id of notification which needs to be cleared

Xrm.Page.ui.clearFormNotification(‘1’);