Summary : Updating a record from JavaScript using the Xrm.WebAPi in Dynamics 365 V9
Now let’s
update a record
Syntax: Xrm.WebApi.updateRecord(entityLogicalName,
id, data).then(successCallback, errorCallback);
***Code
starts here***
var entityData =
{
"subject": “leadFromWebApi_Updated”,
"lastname": “RamLaxman”
}
Xrm.WebApi.createRecord("lead", id, entityData).then(
function success(result)
{
alert("Record
updated successfully ");
},
function (error)
{
console.log(error.message);
});
***Code
ends here***
Looking great article with useful content, thanks for posting please do keep updating...
ReplyDeleteBest Online Software Training Institute | HTML JavaScript Training
Thanks for such informative content, it's really useful.
ReplyDeleteBest Online Training Institute
I like it so much this article and its very interesting to search and learn and gain more and more knowledge in this blog.Amazing article introducing for us .Thank you
ReplyDeleteSoftware Testing Training in Chennai | Software Testing Training in Anna Nagar | Software Testing Training in OMR | Software Testing Training in Porur | Software Testing Training in Tambaram | Software Testing Training in Velachery
Thanks for the good words! Really appreciated. Great post. I’ve been commenting a lot on a few blogs recently, but I hadn’t thought about my approach until you brought it up.
ReplyDeleteSalesforce Training in Chennai
Salesforce Online Training in Chennai
Salesforce Training in Bangalore
Salesforce Training in Hyderabad
Salesforce training in ameerpet
Salesforce Training in Pune
Salesforce Online Training
Salesforce Training