Hello People, I am using RESTlet POST, PUT, & ...
# suitescript
a
Hello People, I am using RESTlet POST, PUT, & DELETE calls to create, update and delete records in Netsuite. The POST & PUT requests are working fine but I am getting 500 response for DELETE request. It was working fine in my Dev instance. The code and record type is same and configured properly where required.
c
What error is it returning with the 500? Probably permissions
a
sometimes, netsuite is very helpful
😂 1
t
Is there a record link to the one you are currently deleting?
a
No, I can delete it manually if I want to
t
I am assuming your script is already set to "run as Administrator"
a
Yes
c
If it's not already, can you wrap the relevant section of code in a try/catch to see if there's any useful error info thrown?
a
The DELETE function is wrapped in a try/catch block already.
You can try adding "doValidation" on this page
a
I've been using the doValidation method also 😅
The same DELETE function is working fine in Dev instance. I am debugging the code now.