Monday, October 26, 2015

Delete Record using XrmSvcToolkit

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...");
   }
});

No comments:

Post a Comment