Archive

Posts Tagged ‘$ is undefined’

“$ is undefined” error while calling OData Service using JQuery & CRM 2011

August 1, 2011 1 comment

Hi,

In CRM 2011, you might have experienced “$ is undefined” error, while calling OData Service using JQuery.

Reason’s: –

  • JQuery native support is not available in Microsoft CRM 2011.
  • This was the exact reason why the Javascript was unable to recognize ‘$’ symbol.

Fix:-

The easiest way to get this working is by creating a new “Webresource”  and adding “Jquery min” file to it.

Steps to follow :-

  1. Go to http://jquery.com and then to Download the Jquery file  (i.e., jquery-1.6.2.min.js)
  2. find the latest Jquery min (select the minified version, at the time of writing ‘jquery-1.6.2.min.js‘ was the latest)
  3. Now go to CRM 2011 and create a web resource
  4. Add the new Web resource by name JQueryMin1.6.2 (JQuryMin<Verion>)
  5. Upload the Downloaded file to JQuery to this web resource.
  6. Now add this web resource to which ever form you want to use JQuery API

Hope this helps 🙂