7 Aralık 2015 Pazartesi

CRM 2015 Javascript - CallBack Function On Save


Xrm.Page.data.save().then(successCallback, errorCallback);

function successCallback() {
    alert("Form saved !!!");
}

function errorCallback(saveErrorResponse) {

    if (saveErrorResponse != null) {
        if (saveErrorResponse.message != 'undefined' && saveErrorResponse.message != null) {
            alert("Error on Save – " + saveErrorResponse.message);
        }
    }
}

Hiç yorum yok:

Yorum Gönder