MS Dynamics CRM Customization and programming tricks by Ronny Van der Snickt

MS CRM Javascript Intellisense Generator

Download: MS CRM Javascript Intellisense Generator
 
 
When writing javascript for MS CRM you can use external files. (See my post Speed up development with external JavaScript files).
With Visual Studio 2008 you can have some javascript intellisense when writing your code. But Visual Studio doesn’t know anything about MS CRM. So we don’t get a lot of advantage from this. But with this tool we can generate files that contain all the information visual studio needs to allow extended use of the intellisense functionality.
MS CRM Javascript Intellisense Generator - Example 1
So let’s say we have a file account.js in a Visual Studio Web Project..
First of all we are going to create a folder intellisense with javascript files to ‘define’ the intellisense. To do this, we are going to use the “MS CRM Javascript Intellisense Generator” application.
 Visual Studio 2008 Project
All you need to do is enter the name of the discovery server and (optional) the credentials, select the organization and save the output in the same directory as the visual studio web project. This will create the folder with 1 javascript file for each entity.
MS CRM Javascript Intellisense Generator - Screenshot
If you have Visual Studio open you will need to close and reopen your project to see the new folder.All that is left is adding a reference in you account.js file to let visual studio know where to look for intellisense.

/// <reference path=”intellisense/account.js” />

 
 

MS CRM Javascript Intellisense Generator - Example 2
In some cases you need to close the account.js file and reopen it again to load the intellisense correctly.

Comments

Comment from De Sutter Steven
Time: August 28, 2009, 11:06 am

Nice one dude !

Comment from Setran
Time: November 22, 2009, 9:53 pm

Great tool. Thank you! Two notes:
An easy way to add the reference to a newly created Jscript file in VS is to drag the desired intellisense file onto the page you are working on.
Also, CTRL+Shift+J will force Visual Studio to update its JavaScript references instead of reloading the solution.

Comment from Lokin
Time: January 11, 2010, 6:26 am

Very Nice

Is it Free for Use?

Comment from Ronny Van der Snickt
Time: January 18, 2010, 2:25 pm

Ofcourse :-)

Comment from Dan
Time: January 21, 2010, 6:44 pm

Is there any way to batch process the entities? Are there any command line options?

Comment from Ronny Van der Snickt
Time: January 29, 2010, 10:18 am

Not at the moment.

Comment from Pirasanth
Time: February 11, 2010, 6:03 am

very nice

Pingback from MS CRM Javascript Intellisense Generator « Microsoft Dynamics CRM links
Time: May 9, 2010, 8:59 pm

[...] CRM Javascript Intellisense Generator May 9, 2010 Leave a comment Go to comments http://crm.vdsnickt.eu/ms-crm-javascript-intellisense-generator/ Categories: Tools, Uncategorized Tags: crm4, development, scripts, visual studio Comments [...]

Pingback from xRM User Group » Blog Archive » CRM Must Have Tools
Time: May 14, 2010, 1:26 am

[...] Microsoft Dynamics CRM 4.0 is one of my favourite tools. The Fetch XML query builder is fantastic. Microsoft CRM JavaScript Intellisense Generator Microsoft CRM User Access Rights Checker This is such a good idea. Saves a lot of time when trying [...]

Comment from Arthur, Art Haynes
Time: May 31, 2010, 12:58 pm

Great tool. Thank you! Two notes:An easy way to add the reference to a newly created Jscript file in VS is to drag the desired intellisense file onto the page you are working on.Also, CTRL+Shift+J will force Visual Studio to update its JavaScript references instead of reloading the solution.
+1

Comment from ahmet tanrıkulu
Time: July 12, 2010, 1:40 pm

Than you a lot , it is perfect. I want to say some turkish words to you ” Helal olsun be”!!

Pingback from Microsoft Dynamics CRM в России » Archive » Полезные штуки для Microsoft Dynamics CRM
Time: August 6, 2010, 11:08 am

[...] Microsoft Dynamics CRM Javascript Intellisense Generator [...]

Comment from Naveen
Time: August 18, 2010, 12:40 pm

Excellent tool

Pingback from Dynamics CRM Tools List « Chitrarasan's Blog
Time: December 22, 2010, 5:59 pm

[...] MS CRM Javascript Intellisense Generator [...]

Comment from hosk
Time: January 20, 2011, 3:14 am

brilliant blog and brilliant tool. You have made my Jscript life so much easier.

a pingback
http://crmbusiness.wordpress.com/2011/01/20/crm-2011-javascript-intellisense-generator/

keep up the good work

Comment from Eduardo
Time: February 2, 2011, 9:32 am

Perfect!!! I need this!!!
Also works with CRM 2011, TESTED!!!

Pingback from Ultimate MS Dynamics CRM Tools List ! « Srikanth Reddy's Blog
Time: June 13, 2011, 3:45 pm

[...] MS CRM Javascript Intellisense Generator [...]

Write a comment