the above code gives me an old familiar error -- ...
# suitescript
k
the above code gives me an old familiar error -- {"type":"error.SuiteScriptError","name":"SSS_MISSING_REQD_ARGUMENT","message":"load: Missing a required argument: type","stack":["createError(N/error)","execute(/SuiteScripts/pasta-work.js:18)","createError(N/error)"],"cause":{"name":"SSS_MISSING_REQD_ARGUMENT","message":"load: Missing a required argument: type"},"id":"","notifyOff":false,"userFacing":true}
d
I think what the last guy meant is use
s.Type.SUPPORT_CASE
or
supportcase
not
s.Type.supportcase
k
👍 understood.. see I a very green..
d
make sure you if you use
supportcase
you put it in quotes
for more information, in your define you have
N/record, N/search...
and in your function you have the corresponding variables set as
s, r...
This means
s
corresponds to the
record
module and
r
is set to correspond to the
search
module. Kind of confusing as most people would reverse those. Either way, with
s
pointing to the
record
module, that module has an enumeration of
Type
set on it, and
Type
has a property on it called
SUPPORT_CASE
. When you reference
s.Type.SUPPORT_CASE
from the
record
module, it's sourcing the string
"supportcase"
and that's why you can use either one.
k
thank you. it was a mistake that I wouldn't have noticed. I am trying to get some type of training through my boss...
d
you've probably heard it on here, but I can tell you from first hand experience that @erictgrubaugh has a great training program.
k
yes sir.. that is the one I am trying to get..
👀 1