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!!!

Comment from Camille
Time: February 8, 2011, 5:42 pm

Has anyone else seen a problem with this finding attributes on a custom entity? I LOVE this tool, but the reference file generated for a custom attribute I have is missing all the custom attributes…
Thanks for this great tool!

Comment from Ye Myint Win
Time: February 15, 2011, 3:38 am

I tried to connect CRM 2011 which is using https and can’t connect. Please guide me how to connect to secure server by using this program. Thanks in advanced.

Comment from CT
Time: March 7, 2011, 8:57 pm

Getting an error when attempting to access a hosted 2011 version. “The underlying connection was closed: The connection was closed unexpectedly.”

Sure about the username and password. Also set port=443 and used the sample server path as always.

‘company name’.crm.dynamics.com

Pingback from CRM 4 – Ultimate Dynamics CRM Tools List « Hosk's Dynamic CRM 2011 Blog
Time: March 15, 2011, 12:18 am

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

Comment from Osman
Time: March 31, 2011, 2:41 pm

Hi,
Would it be possible to update the tool based on 2011 and release it with XRM extensions.
So, it has the XRMPage objects and attributes.
Let me know, if i can help. Thanks,

Regards,

Osman

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

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

Comment from Chiron
Time: September 7, 2011, 9:23 am

I haven’t tested this tool yet on a localhost, but when trying to connect to a hosted CRM, I always get the error HTTP Status 401: Unauthorized.

When I access the CRM through the webinterface I’m able to login with the very same details.

Am I missing something?

Pingback from CRM 4 – A list of the most useful CRM 4 tools « Hosk's Dynamic CRM 2011 Blog
Time: November 3, 2011, 3:08 am

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

Pingback from CRM 4 – A list of the most useful CRM 4 tools | Metaphorix
Time: November 3, 2011, 3:09 am

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

Pingback from CRM 4 – A list of the most useful CRM 4 tools – Hosk's Dynamic CRM 2011 Blog – CRM Technical Blogs – Microsoft Dynamics Community
Time: November 3, 2011, 4:11 am

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

Pingback from CRM 2011 – using Javascript intellisense and Testpage.htm « Hosk's Dynamic CRM 2011 Blog
Time: December 1, 2011, 10:24 am

[...] The only downside is we still don’t have proper intellisense for the entites unlike the workaround in CRM 4 - http://crm.vdsnickt.eu/ms-crm-javascript-intellisense-generator/ [...]

Pingback from CRM 2011 – using Javascript intellisense and Testpage.htm – Hosk's Dynamic CRM 2011 Blog – CRM Technical Blogs – Microsoft Dynamics Community
Time: December 1, 2011, 11:12 am

[...] The only downside is we still don’t have proper intellisense for the entites unlike the workaround in CRM 4 - http://crm.vdsnickt.eu/ms-crm-javascript-intellisense-generator/ [...]

Pingback from Microsoft CRM 4.0 Tool’s List | Prashant_MSCRM
Time: December 6, 2011, 12:54 pm

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

Pingback from Over 40 useful Dynamics CRM 2011 tools, utilities, scripts & controls « Everything CRM
Time: January 24, 2012, 4:47 pm

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

Pingback from Revised list of useful Dynamics CRM 2011 tools, utilities, scripts & controls « Everything CRM
Time: August 16, 2012, 3:07 pm

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

Write a comment