MS CRM 2011--How to turn on System records after rollup 12 finishes

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.