function displaynotification(executionContext){
var formContext = executionContext.getFormContext();
debugger;
var conatt = formContext.getAttribute("ctp_ctpapplicantsappversion");
var conatt1 = formContext.getAttribute("ctp_ctpapplicantsappversion").getValue();
if( conatt && conatt1 != null){
var conID = conatt1[0].id;
var infoID = "info";
var warningid = "warning";
Xrm.WebApi.retrieveRecord("ctp_ctpapplicantsappversion", "cad0116f-ee80-ed11-81ad-000d3a565815", "?$select=statecode").then(
function success(result) {
var res = result.statecode().getValue();
if(res == "active" ){
formContext.ui.setFormNotification("Record ID of CTP Applicants APP is" + conID, "INFO", infoID);
}
}
);
}
}
What wrong in this code when i try to load this script on form onload i am getting below error
ReferenceError: Web resource method does not exist: displaynotification
at y._handleMethodNotExistError (ctp.crm.dynamics.com/.../app.js
at y.execute (ctp.crm.dynamics.com/.../app.js
at ctp.crm.dynamics.com/.../app.js
at i (ctp.crm.dynamics.com/.../app.js
at ee._executeIndividualEvent (ctp.crm.dynamics.com/.../app.js
at ee._executeEventHandler (ctp.crm.dynamics.com/.../app.js
at Object.execute (ctp.crm.dynamics.com/.../app.js
at N._executeSyncAction (ctp.crm.dynamics.com/.../app.js
at N._executeSync (ctp.crm.dynamics.com/.../app.js
at N.executeAction (ctp.crm.dynamics.com/.../app.js
at t.dispatch (ctp.crm.dynamics.com/.../app.js
at Object.dispatch (ctp.crm.dynamics.com/.../app.js
at Object.dispatch (ctp.crm.dynamics.com/.../app.js
at dispatch (ctp.crm.dynamics.com/.../app.js
at It (ctp.crm.dynamics.com/.../17.js
at ctp.crm.dynamics.com/.../24.js
Error Details:
Event Name: onload
Function Name: displaynotification
Web Resource Name: ctp_configstatus
Solution Name: Active
Publisher Name: DefaultPublisherorg524de1c3
Please help me resolve it