i am including in params recordtype and id org.mo...
# suitescript
r
i am including in params recordtype and id org.mozilla.javascript.EcmaError: SyntaxError: Empty JSON string (INVOCATION_WRAPPER$sys#24)
c
what are you using to call the restlet, and have you set the request type to
PUT
and set the correct
content-type
in the headers?
r
yes checked
c
Are you sending any JSON in the body of the request?
r
no
c
Put something in the body. Doesn't matter what it is as long as it's valid JSON
r
{
    
"error": {
        
"code": "SSS_MISSING_REQD_ARGUMENT",
        
"message": "{\"type\":\"error.SuiteScriptError\",\"name\":\"SSS_MISSING_REQD_ARGUMENT\",\"message\":\"load: Missing a required argument: type\",\"stack\":[\"createError(N/error)\",\"put(/SuiteScripts/RL_putupdatesalesorder.js:12)\",\"createError(N/error)\"],\"cause\":{\"name\":\"SSS_MISSING_REQD_ARGUMENT\",\"message\":\"load: Missing a required argument: type\"},\"id\":\"\",\"notifyOff\":false,\"userFacing\":true}"
    
}
}
i passed still the error
c
Change your JSON body to { "recordtype": "yourtype", "id": "12345" }
r
ok thanks
hi, Add authorization data to - request body its shows invalid login attempt and and when i choose request headers it works.. i dont understand why?