I am calling a scheduled script task in afterSubmi...
# suitescript
a
I am calling a scheduled script task in afterSubmit of a userEvent script and passing a parameter. When I try to call the parameter in the scheduled Script it returns nothing. Here are script segments: UserEvent
Copy code
var so = scriptContext.newRecord;
            var trxId = so.id;
            if(scriptContext.type == 'approve')
            {
                var scriptTask = task.create({taskType: task.TaskType.SCHEDULED_SCRIPT});
                scriptTask.scriptId = 2530;
                scriptTask.params = {salesOrderID: trxId};
                scriptTask.submit();
            }
Scheduled Script
Copy code
const execute = (scriptContext) => {
            try {
                log.debug('Context', scriptContext);
                var soID = runtime.getCurrentScript().getParameter('salesOrderID');
                log.debug('so', soID);
How do I update my scripts to return the parameter in the scheduled script?
e
Parameters are defined on the script record and will start with
custscript_
a
According to SS2.0 documentation:
z
@ajrey77 your screenshot is saying the same as @ehcanadian wrote : override the STATIC VALUES FROM DEPLOYMENTS
1