ajrey77
06/29/2022, 7:54 PMvar 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
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?ehcanadian
06/29/2022, 7:56 PMcustscript_
ajrey77
06/29/2022, 8:00 PMZoran R-DATAGRAM
06/29/2022, 8:07 PM