Think Dynamic, Do Dynamic Microsoft Dynamic CE | Powerapps || Dynamic CRM || Power Apps || Power Platform || Canvas App || D365CE

Create update and Delete D365 CRM Record From JavaScript API

 Create update and Delete D365 CRM Record From JavaScript API 


In this tutorial, you can learn how to Create Updates, and delete Dynamic CRM records from Client API Reference.

Create Record (Client API reference)


var data = {

"name": "dynamics crm",

"description": "dynamics crm 365 blog",

}

//Create account record using WebAPI

Xrm.WebApi.createRecord("account", data).then(

function success(result) {

console.log("Account created Id:" + result.id);

},

function (error) {

console.log(error.message);

});



Update Record (Client API reference)


var GUID="106asda-40as-98as-ADASD554545DA";

var data={

"name" :"dynamics crm",

"description" : "dynamics crm 365 blog",

}


//Update account record using WebAPI

Xrm.WebApi.updateRecord("account",GUID,data).then(

function success(result){

console.log("Account updated");

},

function(error){

console.log(error.message);

});


Delete Record (Client API reference)

var GUID="106asda-40as-98as-ADASD554545DA";


Xrm.WebApi.deleteRecord("account",GUID).then(

function success(result)

{

console.log("Account deleted");

},

function(error){

console.log(error.message);

}

);

Share:

0 Comments:

Post a Comment

Dynamic 365

Talha Manzoor. Powered by Blogger.

About Me

My background is entirely involved in Microsoft Dynamics CRM Sales/Service/Marketing solution management, implementation, development, .Net Development, with the majority of it in Microsoft Dynamics CRM 2011/2013/2015/Online and .Net Solutions Implementation, Development and Application analysis. Extensively worked in Dynamics CRM Customization and Configuration, Plugins, custom workflow activities, Rest, Soap,Javascript and CRM custom integration and data migration.

Ex-QB Mark Sanchez arrested, faces three possible charges

  Ex-QB Mark Sanchez arrested, faces three possible charges Former NFL quarterback and current Fox Sports broadcaster Mark Sanchez was arres...

Search This Blog

Design by - Blogger Templates | Distributed by Talha Manzoor

Social

pictory

No Thumbnail

No Thumbnail