fkrauthan
10/26/2022, 6:18 PMsublist_server.js
file I get the error syntax error (/SuiteApps/.../sublist_server.js#20)
Line 17-29 looks like this :
const values = apSearch.run().getRange({
start: 0,
end: 1000
}).map(result => ({
value: result.getValue({
name: "internalid"
}),
text: `${result.getValue({
name: "number"
})} - ${result.getValue({
name: "name"
})}`
}));
creece
10/26/2022, 6:33 PMfkrauthan
10/26/2022, 6:35 PM/**
* @NApiVersion 2.1
* @NScriptType Suitelet
*/
(it used to be 2.x
) the Script record for that file still says API Version 2.0
shouldn't changing the header of the file make Netsuite change that?fkrauthan
10/26/2022, 6:35 PMcreece
10/26/2022, 6:36 PMfkrauthan
10/26/2022, 6:36 PMfkrauthan
10/26/2022, 6:37 PMfkrauthan
10/26/2022, 6:37 PMcreece
10/26/2022, 6:37 PMcreece
10/26/2022, 6:39 PMfkrauthan
10/26/2022, 6:42 PMFail to evaluate script: {"type":"error.SuiteScriptError","name":"SUITESCRIPT_API_UNAVAILABLE_IN_DEFINE","message":"All SuiteScript API Modules are unavailable while executing your define callback.","stack":["Error\n at Object.hasSubsidiary (/SuiteApps/.../lib/config_util.js:33:21)\n at /SuiteApps/.../lib/config_api.js:11:38"],"cause":{"type":"internal error","code":"SUITESCRIPT_API_UNAVAILABLE_IN_DEFINE","details":"All SuiteScript API Modules are unavailable while executing your define callback."
never seen that before. I wonder if 2.1 has slightly different rules since in 2.0 that used to workEric B
10/26/2022, 6:52 PMdbarnett
10/26/2022, 6:56 PMShawn Talbert
10/27/2022, 8:49 PMfkrauthan
11/04/2022, 9:38 PM