I’m proud to announce the release of version 1.2 of our CRM JavaScript conversion utility, the CRM Migration Assistant.
New Features
The following new features were added:
QuikStats
Lists the following statistics on the conversion process:
- Number of files
- Number of lines of JavaScript
- Conversion time
Find Duplicates
Two additional reports are create that track the following duplicate information:
Duplicate Events
The contents of each event (onload, onsave, onchange) are compared and a report produced of events that have exactly the same contents. This information is written to an XML file and can be found in the conversion folder.
Duplicate Functions
Since the CRM Migration Assistant records the names of functions found within your JavaScript, we decided it would be helpful to produce a report of duplicate function names. This information is written to an XML file and can be found in the conversion folder.
Faster Conversion Time
The conversion process has been streamlined and which as dropped the actually conversion time around 50%.
New or Modified Conversions
The following changes have been made to the conversion process:
crmFormSubmit.crmFormSubmitId.value
Is converted to: Xrm.Page.data.entity.getId()
crmForm.all.new_field.setAttribute(“req”, 1);
Is converted to: Xrm.Page.getAttribute(“new_field”).setRequiredLevel(“recommended”);
Tabs
In CRM 4.0, tabs were named using the convention tabXTab – with the X being 0-7
Example: crmForm.all.tab1Tab.style.display = “”;
The initital conversion to CRM 2011 was using the tab Name:
Xrm.Page.ui.tabs.get(“{e248752a-4144-db11-8737-00137263ee97}”);
The GUID was the internal ID of the Tab but issues were discovered that caused this ID to be incorrect so the conversion was changed into this:
Xrm.Page.ui.tabs.get(1).setVisible(true);
Unsupported JavaScript
The following unsupported JavaScript objects have been added to the conversion process. If encountered, they will marked as conversion issues in the converted JavaScript and listed in the conversion report as well.
- crmForm.detachCloseAlert()
- crmFormSubmit.crmFormSubmitSecurity.value
- crmFormSubmit.crmFormSubmitObjectType.value
Note: crmFormSubmitObjectType contains the same value as ObjectTypeCode.
Final Notes
Previous versions of the CRM Migration Assistant will need to be uninstalled before version 1.2 can be installed.
The new download can be found here.