in other words, I want to know that deployment 1 a...
# suitescript
b
in other words, I want to know that deployment 1 as defined with value "bob" as script parameter "custscript_name"
d
I don't think you can get the values of params as well, need
N/runtime
for that here's a snippet example of using both though, seemed to work ok:
Copy code
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 tables
b
it seems that this only gets me the COMPANY values. i need to know that for a specific deployment, what values are set on THAT deployment
because I want to gather the info about a bunch of deployments from a single place
and that doesn't seem possible
d
record.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 solve
b
ahhh. interesting. let me try that. thank you.
that does it. thank you.
👍 1