CRM Migration Assistant Update Released
With the release of the CRM 2011 Release Candidate, we now have access to a few more JavaScript functions.
The CRM Migration Assistant has been modified to properly convert these commands:
Outlook Functions
The following functions which determine the state of Outlook are properly converted to their
IsOnline
Checks whether the client application for which this page is rendered is online or offline.
Usage |
CRM 4.0 |
CRM 2011 |
Get |
IsOnline() |
Xrm.Page.context. isOutlookClientOnline() |
IsOutlookClient
Checks whether the form is shown on either Microsoft Dynamics CRM for Microsoft Office Outlook or Microsoft Dynamics CRM for Microsoft Office Outlook with Offline Access.
Usage |
CRM 4.0 |
CRM 2011 |
Get |
IsOutlookClient() |
Xrm.Page.context. isOutlookClient() |
IsOutlookLaptopClient
Checks whether the form is shown on Microsoft Dynamics CRM for Outlook with Offline Access.
Usage |
CRM 4.0 |
CRM 2011 |
Get |
IsOutlookLaptopClient |
Xrm.Page.context. isOutlookClient() |
IsOutlookWorkstationClient
Checks whether the form is shown on Microsoft Dynamics CRM for Outlook.
Usage |
CRM 4.0 |
CRM 2011 |
Get |
IsOutlookWorkstationClient() |
Xrm.Page.context. isOutlookClient() |
Events
Events are handled in a similar manner within CRM 2011, but with a slightly different command structure.
event.returnValue
Sets the return value of the function, which in the case of OnSave, will allow the Save operation to be cancelled.
Usage |
CRM 4.0 |
CRM 2011 |
Set |
event.returnValue = false; |
executionObj.getEventArgs().preventDefault() |
event.Mode
Represents the button clicked by the user to save the record.
Usage |
CRM 4.0 |
CRM 2011 |
Get |
var oField = event.Mode; |
executionObj.getEventArgs().getSaveMode() |
event.srcElement
Returns a reference to the object that the event occurred on.
Usage |
CRM 4.0 |
CRM 2011 |
Get |
var oField = event.srcElement; |
executionObj.getEventSource() |
Note: in CRM 2011, the use of these three event objects assumes that the Execution Context is being passed to the function and the parameter containing the context is called executionObj .
User-Interface Changes
One small user interface change was added to allow you to connect to an on-premise installation via HTTPS, instead of HTTP.
Checking the Use HTTPS checkbox on the Connect to Dynamics CRM dialog will instruct the CRM Migration Assistant to use HTTPS when building the URL pointing toward your CRM server.
Getting the Update
The CRM Migration Assistant is self-updating so all you need to do is run the application and the update will be downloaded and installed for you.
If you have never installed the CRM Migration Assistant, you may download the demonstration version here.
The documentation is available here.
This was originally posted here.
*This post is locked for comments