locked
Which resource file has this method“Mscrm.CrmDialog”?? RRS feed

  • Question

  • Which resource file has this method“Mscrm.CrmDialog”??

    • Edited by tsyj211 Wednesday, March 1, 2017 2:53 AM
    Thursday, February 23, 2017 5:11 AM

All replies

  • Please verify your api version us 8.2. Go to Settings>> Customizations>> Developer resources 

    Please use crmrestbuilder to build urls.

    https://github.com/jlattimer/CRMRESTBuilder/releases

    Refer this:

    var entity = {};

    var req = new XMLHttpRequest();
    req.open("POST", Xrm.Page.context.getClientUrl() + "/api/data/v8.2/accounts", true);
    req.setRequestHeader("OData-MaxVersion", "4.0");
    req.setRequestHeader("OData-Version", "4.0");
    req.setRequestHeader("Accept", "application/json");
    req.setRequestHeader("Content-Type", "application/json; charset=utf-8");
    req.onreadystatechange = function() {
        if (this.readyState === 4) {
            req.onreadystatechange = null;
            if (this.status === 204) {
                var uri = this.getResponseHeader("OData-EntityId");
                var regExp = /\(([^)]+)\)/;
                var matches = regExp.exec(uri);
                var newEntityId = matches[1];
            } else {
                Xrm.Utility.alertDialog(this.statusText);
            }
        }
    };
    req.send(JSON.stringify(entity));


    Regards, Saad

    Thursday, February 23, 2017 8:42 AM