I have a company setting script parameter field (w...
# suitescript
s
I have a company setting script parameter field (which appears on the general preferences page) is there a place to view all of the script parameter fields? Or can I create a search? Or is it possible to see which script created the script parameter field without having to check all the fields?
My current problem is I have plugin implementations which uses get settings (in 1.0) of that field but I have no idea which script record created this script parameter field
b
no good answer
developer answer is to hope that there are less parameters than there are scripts and open https://{accountid}.app.netsuite.com/app/common/custom/scriptcustfield.nl?id=1 urls and increments ids until you find the one you are looking for
s
@battk I did the dumb option to just go through all the scripts with either the getSettings for 1.0 or get script parameters in 2.0 and just pray and hope the script parameter was in that script or in it's library I did one of those text searches like a gawk kinda deal, so it was ok just wasn't sure why there wasn't a way to do it in the UI
n
It is possible to load the record of type "script" and see the parameters sublist and the sublist contains what you need. With a bit of leg work you can run a search of scripts to get back the internal ids and then iterate through pulling out parameter info. I had it in mind you could perform a script search and return the param sublist in the results but cannot find any code to support that.
one of the columns on the parameters sublist is setting: setting = {string} COMPANY which might also help.
m
You could probably use sdf to download all script records in XML and do a text search in the files.
n
I wrote a suietlet for you to enter the internalid which kicks off a map/reduce that does the search / match and emails you the script details. t'was a fun mini project 🤭 (why a m/r? because you have to load each script in turn to access the parameters sublist,,,, )