HTTPS PATCH Request Hi Guys, We are trying to cre...
# suitescript
a
HTTPS PATCH Request Hi Guys, We are trying to create a salesforce integration that updates a custom property. We are facing a challenge that Netsuite does not seem to be requesting the request/PATCH method.
n
Ironically, NetSuite REST WebService uses PATCH method to update records 😄
😁 1
Have you tried https.request(options)?
a
const header={
"X-HTTP-Method-Override":"patch",
"Content-Type": "application/json",
"Authorization": "Bearer " + token,
'Accept': 'application/json',
}
const response = https.request({
method: <http://https.Method.POST|https.Method.POST>,
url: url,
headers: headers,
body:JSON.stringify(recordData)
});
Yes, I have tried with no luck😄.