Hi everybody, is there a way to see all script par...
# suitescript
b
Hi everybody, is there a way to see all script parameters of my deployed scripts without looking into it one by one?
j
Using SuiteQL
SELECT * FROM customfield WHERE scriptid LIKE 'CUSTSCRIPT%'
b
hi jen thank you for this, is there any details i need to change? this is the parameter id custscript_fg_sample_ret
j
what is the actual question you are trying to answer?
b
i am new to the company, there is a script parameter with this id "custscript_fg_sample_ret" i was only able to find one script that uses that parameter and would like to know if there are any other scripts in which also uses the same parameter. its hard to manually check all scripts deployment as its over 1000 deployments, is there an easy way to check all this?
j
there would not be more than one script with the same parameter. The internal id must be unique.
b
oooh got it, thanks jen! this is a big help
n
Whilst technically true the same parameter id cannot be on more than one script... If it is a COMPANY level parameter, as defined on a script, it could be used by any number of scripts, you'd have to look at the source code to know if it was being used by other scripts. Also, a parameter that is not company level could also be referenced by another script, if for example a script was using the N/task module to kick off a map/reduce and applying a value to the passed in parameter.
☝️ 1