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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
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