CRM 2013/2015 – Add a Visual Indicator to distinguish between build environments

Posted by on Jul 28, 2015 in CRM 2013, CRM 2015 |

Visually distinguish between your build environments


Edit the main.aspx file located in the C:\Program Files\Microsoft Dynamics CRM\CRMWeb\ folder

Add the following java script code block

Add the following CSS code which will allow you to have some additional text before the word SANDBOX.


Read More

CRM 2015 save method with callbacks to navigate away from an error

Posted by on Jul 16, 2015 in CRM 2013, CRM 2015 |

Recently i stumbled upon an edge case scenario where the logged in user that has access to the record was making a specific change to the record which in turn fired the elevated plugin which removed his access and threw this strange error:

Server Is Busy

The record was saved. However, the data could not be displayed because the server is busy…


During my investigation, i had to come up with a way to remove this annoying error and take them back to the grid screen. Thankfully the has a method save with the option to set callback functions to be executed after the save operation is completed.

Hooking onto these methods, i threw an alert and used the history.go method to return to the grid.

Notice the set_forceNavigationAway method, this is used to disable the the onbeforeunload message that CRM prompts saying you have unsaved changes to the form.


Read More
%d bloggers like this: