Tuesday, October 27, 2009

CRM documentation tool: Fixing scripts

In a previous post I mentioned that the CRM 4.0 Documentation tool can export scripts from Dynamics CRM forms and attributes. One of the problems with the tool, though, is that it copies the JScript code verbatim from the exported CRM customizations xml file into Excel, complete with escaped greater-than and less-than characters. For example, a less-than character will appear in the script as &#60; instead of "<".

To fix the script code once it's in Excel, search and replace the following:

Replace &#60; with <

Replace &#62; with >