I was just looking at the `N/config` module and I ...
# suitescript
n
I was just looking at the
N/config
module and I think that would be cool to have data stored there that I can use to toggle scripts, similar to how you would use it in SCA. Is any customizability to the configuration file? Is this just the
Setup> Company> Company Information
that you can access through
config
module? If so, it doesn't look like I can add data there
j
Looks like you can load general preferences as well "config.Type.COMPANY_PREFERENCES". I see custom preferences from bundles I've installed so I imagine you can save things there somehow.
n
I wonder if you have to do a SuiteApp in order to load those custom configurations
j
Looks like it's part of field parameter options on a script record.
Copy code
Define script parameters as having either company or user preferences.

Setting a script parameter to user allows end users to override the default (company) script behavior by going to Home > Set Preferences and clicking the Custom Preferences tab. End users do not have to manipulate a script or its deployments to change or customize the parameter.
n
Cool, getting somewhere, but im still not seeing how to add the preferences there
I see I have some toggles from bundles we have installed, one such is Sticky Notes.
Point #8
n
Oh cool so you can set as Company and it goes in the general preference or user and it goes in the users preferences
wow neat
okay so i have a lot of scripts with parameters, but just didnt set the preference
very cool, i got it now. this seems like there are a lot of potential with using this.
thanks @jarens
👍 1