Code Snippet:
XrmSvcToolkit.deleteRecord({
entityName:"Account,
id:Xrm.Page.data.entity.getId(),
async:false,
successCallback(result){
alert(""the record with id "+ id +" is deleted");
},
errorCallback(error){
alert("Unable to delete record...");
}
});
XrmSvcToolkit.deleteRecord({
entityName:"Account,
id:Xrm.Page.data.entity.getId(),
async:false,
successCallback(result){
alert(""the record with id "+ id +" is deleted");
},
errorCallback(error){
alert("Unable to delete record...");
}
});
No comments:
Post a Comment