So I have a task with some params that is kicking ...
# suitescript
z
So I have a task with some params that is kicking off a scheduled script. What is the proper way to grab the params?
runtime.getCurrentScript().getParameter({name:'test'});
is returning blank
b
outside of the id, which looks wrong for a script parameter
your code is correct
z
@battk I changed it to
custscript_test
annd still returns nothing. What is the proper format?
e
Did you actually create said Script Parameter on your Script record?
the
params
option isn't for arbitrary parameters; you need to actually create them on the Script record