var jsonVar = [{"email":"john@email.com","lastname":"Famous","firstname":"John"}];
var response = nlapiRequestURL(url, jsonVar, header, "POST");
The following code would work:
var jsonVar = [{"email":"john@email.com","lastname":"Famous","firstname":"John"}];
var data = JSON.stringify(jsonVar);
var response = nlapiRequestURL(url, data, header, "POST");
This comment has been removed by a blog administrator.
ReplyDelete