Skip to main content
Community site session details

Community site session details

Session Id :

Day 23: Creating New Records Programmatically with JavaScript in Dataverse / MSCRM

Ram Prakash Profile Picture Ram Prakash 2,287


In this Blog, we will see how to Create New Records Programmatically with JavaScript in Dataverse / MSCRM

var record = {};
record.bosch_dayname = "Name of the Record"; // Text

Xrm.WebApi.createRecord("bosch_day", record).then(
	function success(result) {
		var newId = result.id;
		console.log(newId);
	},
	function(error) {
		console.log(error.message);
	} );


You can pass different parameter based in the "record" to create with field values


This was originally posted here.

Comments

*This post is locked for comments