Tuesday, August 5, 2008

It's the little things! JavaScript Extraction Tool

I just saw this post by Joris Kalz on his blog posted Monday, August 04, 2008 5:04 PM and I cannot wait to try it out. There has been many times I wanted a tool like this, plus it will help me document those hidden customizations for my clients. WAY TO GO Joris and thanks.


I recently had to transfer several customizations to a different CRM installation. While Microsoft Dynamics CRM offers an export and import functionality, in this case I just wanted to select specific client side customizations. However, manually grabbing all jscript code is a little bit time consuming. Instead, I wrote a few lines of code to export all jscript code without annoying interaction.VS Project CRM to JS Export

 

The code is pretty straight forward, so feel free to modify. You can download the VS 2008 project here: Microsoft Dynamics CRM Jscript Export Tool

Before you start this tool, you have to change the app.config according to your CRM installation:

WindowClipping

After running the tool, all client side jscript will be stored at the declared output folder.Running-CRM-Jscript-Export-Tool

The result will be a list of all entities containing jscript separated by event type and further by form and field events.

JScript-File-List

Hopefully you like this tool. In the final stage of this tool, it will be even possible to write changes back to Microsoft Dynamics CRM.

No comments: