Hello Guys,
I am using below code to create new record in CRM using Javascript. Code is working fine if i call the method on Load of the form. But if i call the method on Custom Button. it stop working. please suggest what i am missing.
function GenerateRecord() {
debugger;
var dummy = {};
dummy.dam_name = "Test";
//Create the dummy
SDK.REST.createRecord(
dummy,
"dam_dummy",
function (dummy) {
},
errorHandler
);
// this.setAttribute("disabled", "disabled");
}
function errorHandler(error) {
// writeMessage(error.message);
}
*This post is locked for comments