Before encountering such a problem, in the development of MSCRM 2011, the system was not updated to rollup 12, the development of the use of scripts to open system records is not a problem (not according to the method provided by the SDK code), and then after the system finished rollup 12, found that all of the previous functions to open the system record is not good, and then re-follow the method provided by the SDK to modify the code, and finally solve the problem, it seems that in the development process must follow the method provided by the SDK to write code, or after the system upgrade is really troublesome.
The following describes how to use the methods provided by the SDK to implement the system logging feature:
1. Use the Xrm.Utility.openEntityForm method to open the system page:
Function Opennewform () { Xrm.Utility.openEntityForm (name,id,parameters);}
Note: Name: The names of the entities being opened;
ID: The ID of the record being opened, which can be set to null if the new form is opened;
Parameters: A parameter passed to another form;
Refer to the SDK:Xrm.Utility reference for specific information
2, if the parameters passed in this entity does not exist in the relevant fields, you need to set up manual, the specific setting method is as follows:
A. Open the form setting of the entity that needs to be opened;
B, click Form Properties, and in the Form Properties dialog box, select the Parameters tab;
C, add the form to allow the name and data type parameters;
3. Get the value that is passed to the open form by getting the URL:
How to get the URL address:
var formurl = window.location.href;// Gets the URL address var formurlcode = decodeURI (Formurl);// decodes the acquired URL address
MS CRM 2011--How to turn on System records after rollup 12 finishes