- Mscrm is not defined Error occurred inside HTML Web Resource.
- Icons are not displaying in Cases View
We have referred “ClientGlobalContext.js.aspx” in HTML web Resource as below:
HTML Web Resource having Mscrm. to return to the Previous window. But, its giving error for some of the Users only as “Mscrm is not defined.”
Same users are not able to see “Icons” in cases view.
I have drilled down into Issue. By pressing F12, I observed the Icons also referring “/WebResource/icon.png”. When I change to “../WebResource/icon.png” from Developers tools window [F12], it started working.
After doing a bit of research, I found the users who are facing Problem are existed in Multiple Instances in same server. One of the Instance they are not assigned with Security Roles. Hence, These issue came while accessing Cases and Custom Web Resource.
1. Update Users Default organization in MSCRM_CONFIG DB [We should do this by backend]
2. Assign Missing Roles in all Environments [My Case, This is a Test Environment that created as a cloned environment with existing. So added Roles to this Test Account and started working in Main Environment].