Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
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!
0