Hi all,
I am trying to create a contact record using the OData endpoint with JavaScript, here is my code:
function CreateNewContact()
{
var contact= {};
contact.lastname= "Test JS Contact";
SDK.REST.createRecord(
contact,
"contact",
function (contact)
{
alert("Account Created with name" + " " + contact.lastname);
},
errorHandler
);
function errorHandler(error) {
writeMessage(error.message);
}
}
I guess this is not creating any contact record in Contact Entity.
What might have gone wrong ?
Thanks.