Hi,
My requirement is when i create a "contact name " in contact entity at the same time create "account name" in account entity
Given below write my code its showing error please someone refer and help me.
function createAccount() {
var account = {};
account.Name = Xrm.Page.getAttribute("fullname").getValue();
XrmServiceToolkit.Rest.Create(
account, "AccountSet", function (result) {
accountId = result.AccountId;
}
function (error) {
equal(true, false, error.message);
},
false
);
}
Thanks,
Naresh.
*This post is locked for comments