{"type":"error.SuiteScriptError","name":"INVALID_R...
# suitescript
s
{"type":"error.SuiteScriptError","name":"INVALID_RCRD_TYPE","message":"The record type [PURCHORD] is invalid.","stack":["createError(N/error)","beforeLoad(/SuiteScripts/subsidiary email subject.js:32)"],"cause":{"type":"internal error","code":"INVALID_RCRD_TYPE","details":"The record type [PURCHORD] is invalid.","userEvent":"beforeload","stackTrace":["createError(N/error)",
s
search record types are not the same as record types... look at the
record.Type
enum in the help pages