and then click the Convert button. The converter tool will then process the CRM 4 script by trying to find matching code snippets from the ConversionList.xml file. the user can then review the script and if required can modify the CRM 4 script and convert
There are many new Client API features available in 2011 that required unsupported scripting to achieve the same desired results in CRM 4 such as hiding Tabs and Form fields. This tool allows you to update script by using the Conversion.List.xml file to specify
a snippet of text and replace it with something else. Usually the script snippet will contain one or more variable pieces of text that needs to be retained, for instance a field name (e.g. new_myfield) or a string constant (e.g. "something in parenthesis/quotes").
The ConversionList.xml code snippets handles this by defining these sections with the |_| (i.e. Pipe Underscore Pipe) character sequence (e.g. crmForm.all.|_|.DataValue for CRM 4 and Xrm.Page.getAttribute(|_|).getValue() for CRM 2011). the ConversionList.xml
field can be updated as required to meet your needs, either adding, updating or removing <snippet> nodes.
An example without the |_| character sequence
An example with the |_| character sequence
<crm4>crmForm.all.|_|.DataValue = |_|;</crm4>
A special feature of the |_| character sequence also includes a variable integer that can remove characters from the variable piece of text that needs to be retained before it is converted to the 2011 version (e.g. |_|2 ). This is used for previously unsupported
script such as crmForm.all.new_myfield_d.style.visibility = "hidden"; where _d is no longer required. This script will convert into Xrm.Page.getAttribute("new_myfield").setVisible(false);.
An example with the |_|2 character sequence
<crm4>crmForm.all.|_|.style.visibility = "hidden";</crm4>
Has this Tool saved you time...
If you have benefited from downloading and using this tool, please feel free to donate an amount of your choice. Thankyou