Boban Dragojlovic
09/02/2022, 6:41 PMdbarnett
09/02/2022, 6:56 PMN/runtime
for that
here's a snippet example of using both though, seemed to work ok:
const runSuiteQL = (queryStr) => query.runSuiteQL({ query : queryStr }).asMappedResults();
const scriptParamRes = runSuiteQL(`SELECT s.id, s.scriptid, p.internalid, p.fieldtype, p.setting
FROM script s
JOIN parametersScript p ON p.owner = s.id
WHERE p.setting = 'COMPANY'`)
const scriptParamValues = scriptParamRes.map(x => runtime.getCurrentScript().getParameter(x.internalid))
using script & parametersScript tablesBoban Dragojlovic
09/02/2022, 6:57 PMBoban Dragojlovic
09/02/2022, 6:57 PMBoban Dragojlovic
09/02/2022, 6:58 PMdbarnett
09/02/2022, 6:59 PMrecord.Type.SCRIPT_DEPLOYMENT
is a thing, if I recall I think you can actually load particular deployment as record and get info off of that, probably some combination then between query/runtime/record modules to solveBoban Dragojlovic
09/02/2022, 6:59 PMBoban Dragojlovic
09/02/2022, 7:02 PM