I'm a little confused on setting script parameters...
# suitescript
s
I'm a little confused on setting script parameters for the script record i would like to have a hard code value passed to the script how do i save that in the ui ``````
e
Create the Parameter(s) from the Script record. Then edit the Script Deployment record(s); the Parameter fields will be on the Parameters tab.
Access them in your code with the
N/runtime
module.
s
I'm confused about where inside the UI I add the value of the parms and if I m retiring it correctly
Copy code
var searchid = runtime
    .getCurrentScript()
    .getParameter({ name: "custscripttest_id" });
c
You add the parameter values specific to the deployment on the script deployment
You have to add the parameters on the script page first though
s
thank you