can someone remind me if we can set script paramet...
# suitescript
s
can someone remind me if we can set script parameter values from within a script, or are they read only? I see
N/runtime
only has a
getParameter()
(no 'set')
b
Although i suspect its unintended, you can load the script deployment as a record and set the parameter as a field
đź’Ż 1
c
If you create the parameter and set the Preference as 'Company' then you can edit these as with
N/config
, iirc.
e
You can create the script parameters and then pass the value for those parameters which effectively “sets” the values. Use case: SL fires off MR passing task parameters referencing the MR script parameter. Using getParameter() you can grab the values passed the MR and use them that way.
s
thanks all