Dynamics Light Seeing the (Silver)Light effect in Dynamics CRM

19Jun/101

MSCRM Javascript Audit

One of the biggest pain point from doing client-side customization in CRM 4 is not having auditing (track changes) capability each time you make changes to your Javascript. Normally, we have to get around this by storing all javascripts in source control so that we can see what’s changed / rollback if necessary. While this is ok for small customizations, this could lead into a tedious process in the long run.

So, I managed to develop this little plugin to do exactly that. It will log any javascript changes you made, being in the form level or field level. It will also work across standard CRM form and Mobile form. Due to the nature of plugin, it only works on MS CRM 4 On-Premise deployment.

For the technical side of things, this plugin only listens to the Publish event (not PublishAll) for performance reason. The way it works is pretty simple. It captures the Pre and Post-entity customization file and compare the javascript codes. Any changes detected will be written to the custom entity called Javascript Audit Log. This way, you could easily identify changes you made to the javascript code and enables you to rollback easily if something goes wrong.

You can find all the installation files and source code in http://crmjavascriptaudit.codeplex.com Hopefully this feature will be included in MSCRM vNext.

I will update this post with screencast on Getting Started soon (after the Socceroos soccer match) :)

Get Adobe Flash playerPlugin by wpburn.com wordpress themes