Does anyone know why I get this error everytime I ...
# suitescript
l
Does anyone know why I get this error everytime I try to delete an IF using inline editing? But not when I go to Actions > Delete The script works as intended except that it throws this error everytime I try to delete the IF using inline editing. {"type":"error.SuiteScriptError","name":"SSS_MISSING_REQD_ARGUMENT","message":"load: Missing a required argument: id","stack":["createError(N/error)","beforeSubmit(/SuiteScripts/partialOrComplete.js:39)","createError(N/error)"],"cause":{"name":"SSS_MISSING_REQD_ARGUMENT","message":"load: Missing a required argument: id"},"id":"","notifyOff":false,"userFacing":true}
d
Might be an issue with execution context. I would add a condition in the script to exit if the context is delete.
e
It seems like you are loading a record and in that context the id you are using is empty, if the logic should not apply for this event, you should do what @dcrsmith mentioned
l
@dcrsmith Will do. Is that better than assigning the context under the Deployments subtab of the Script record?
p
inline edits fire
xedit
events, if that helps