jarens
02/28/2019, 7:37 PMreptar
02/28/2019, 7:38 PMnathanw
02/28/2019, 7:39 PMnathanw
02/28/2019, 7:40 PMreptar
02/28/2019, 7:40 PMreptar
02/28/2019, 7:41 PMnathanw
02/28/2019, 7:41 PMreptar
02/28/2019, 7:41 PMnathanw
02/28/2019, 7:47 PM{
"type": "error.SuiteScriptError",
"name": "WRONG_PARAMETER_TYPE",
"message": "Wrong parameter type: filters[0] is expected as Filter. ",
"stack": [
"createError(N/error)",
"afterSubmit(/SuiteScript.js:76)",
"createError(N/error)"
],
"cause": {
"name": "WRONG_PARAMETER_TYPE",
"message": "Wrong parameter type: filters[0] is expected as Filter. "
},
"id": "",
"notifyOff": false,
"userFacing": true
}
nathanw
02/28/2019, 7:47 PMexistingsearch.filters = filterArray;
Lincecum
02/28/2019, 7:52 PMLincecum
02/28/2019, 7:56 PMjarens
02/28/2019, 7:57 PMerictgrubaugh
02/28/2019, 8:18 PMOR
together internal IDs, you don't need to. internalid
is a Select field, meaning it expects the ANYOF
or NONEOF
operator, which both expect Array valueserictgrubaugh
02/28/2019, 8:19 PMs.createFilter({
name: 'internalid',
operator: s.Operator.ANYOF,
values: [11223, 4432345, 23325634, ...]
});
erictgrubaugh
02/28/2019, 8:20 PMnathanw
02/28/2019, 8:27 PMEric B
02/28/2019, 8:39 PMdcrsmith
02/28/2019, 8:41 PMSuiteBender
02/28/2019, 8:47 PMerictgrubaugh
02/28/2019, 8:51 PMnlapiCreateError(...).getStackTrace()
erictgrubaugh
02/28/2019, 8:51 PMError Handling APIs
SuiteBender
02/28/2019, 8:59 PMKris Jones
02/28/2019, 9:01 PMCannot find module 'N/types'
Kris Jones
02/28/2019, 9:02 PM{
"compilerOptions": {
"module": "amd",
"moduleResolution": "node",
"newLine": "LF",
"sourceMap": false,
"experimentalDecorators": true,
"noImplicitUseStrict": true,
"lib": [
"ESNext",
"dom"
],
"target": "es5",
"baseUrl": ".",
"paths": {
"N": [
"node_modules/@hitc/netsuite-types/N"
],
"N/*": [
"node_modules/@hitc/netsuite-types/N/*"
]
}
},
"exclude": [
"node_modules"
]
}
Kris Jones
02/28/2019, 9:07 PMdcrsmith
02/28/2019, 9:11 PMLincecum
02/28/2019, 9:13 PMEric B
02/28/2019, 9:17 PMdcrsmith
02/28/2019, 9:19 PM