Updated Xrm.Page Script Library Template

The latest release of the Microsoft Dynamics CRM SDK (v5.0.14) includes an update to the Xrm.Page Script Library Template. The Xrm.Page Script Library Template is a solution that helps you write and test form scripts using Visual Studio. The main improvements are:

  • New Visual Studio Project Template Extensions that support installing the Xrm.Page Script Library Template with Visual Studio 2012 and Visual Studio 2010.
  • An updated XrmPageTemplate.js library that provides more robust JavaScript IntelliSense.
  • Support for Xrm.Utility functions and the Xrm.Page.context.getClientUrl function.

When I originally released the Xrm.Page Script Library Template (almost 2 years ago now), I was somewhat disappointed that the JavaScript IntelliSense was not as robust as I had hoped. Now, though, I’m very happy to say that with Visual Studio 2012, IntelliSense for JavaScript is greatly improved. For more information, see Scott Hanselman’s video: https://www.youtube.com/watch?v=GNfDird7hWI.

For more information about the Xrm.Page Script Library Template, see the original post: JScript IntelliSense for Form Script Libraries.

Happy scripting

Jim Daly

Comments (2)

  1. Eric L says:

    This is a great tool!! It just might get me to switch from Notepad++

    I can't get the eContext object to work.  Is that supposed to get generated in the Xrm.Page Snapshot?  (if so that were I have the problem UR8)

  2. crmblog says:

    eContext is generated by the Xrm.Page Snapshot. see rc.crm.dynamics.com/…/XrmPageScriptDevelopmentProjectHelp.htm

    for more information.

    Jim Daly