Friday, March 01, 2013

Updated: Microsoft Dynamics CRM 2011 JavaScript Development Cheat Sheet

I just made some updates to CRM 2011 JavaScript Development Cheat Sheet. There are a couple changes in this update to reflect some recent SDK updates.
  • added Xrm.Utility Methods
  • added getClientUrl method
  • marked getAuthenticationHeader and getServerUrl methods as deprecated
Since UR12, getServerUrl is deprecated, and getClientUrl is the recommended approach. To handle the transition, you might want to first check if getClientUrl is available and then use getServerUrl as a second option. This is to ensure backward compatibility, which is important for ISVs. You can see my implementation in the most recent of XrmSvcToolkit.

You may download the cheat sheet document from the following link on my Windows Live SkyDrive.

This may not worth a dedicated blog post, but I thought this is the only way to reach out to the community in order to have your attention.

Please let me know in case I have missed anything important.


  1. What is the alternative for getAuthenticationHeader ?????

    1. You shouldn't need getAuthenticationHeader unless you are using SOAP 2007 service endpoint, which is deprecated and will be dropped in the next version of CRM release.