Discussions
nlapiRequestURL HttpMethod Delete
I am having trouble getting the Delete to work with nlapiRequestURL. Here is my sample code
data["X-Http-Method-Override"] = 'DELETE';
data = JSON.stringify(data);
nlapiRequestURL(url, data, headers, async === true ? success : null);
I am calling the above method in a client script, in the script log i am seeing the request as follow , but on the RestApi said i am seeing this is going as a 'POST' instead of 'DELETE'
Log Request message : {"features":[{"featureId":1,"userId":12345}],"X-Http-Method-Override":"DELETE"}
Thanks for your time and help!