Hi, Do you guys know if I can pull the value of a script parameter on my script page using suitescript or suiteql?
x
Xiaoxin Li
07/22/2025, 12:00 AM
Hi, @braie
Here's the solution to pull the value of a script parameter using suitescript
const currentScript = runtime.getCurrentScript();
const scriptParameterValue = currentScript.getParameter({
name: "custscript_script_parameter_id",
});
s
Shawn Talbert
07/22/2025, 4:50 AM
you can also query them via SuiteQL
👍 1
b
braie
07/22/2025, 7:08 PM
thank you for this! this is very helpful
s
Shawn Talbert
07/22/2025, 7:37 PM
lesser known is that you can also update the values via script 🙂