Kevin Baxter
08/17/2023, 8:19 PMbattk
08/17/2023, 8:22 PMKevin Baxter
08/17/2023, 8:39 PMlet myTask = task.create({
taskType: task.TaskType.MAP_REDUCE,
scriptId: 'customscriptlf_royalty_map_reduce',
deploymentId: 'customdeploy_lf_royalty_map',
params: {
'cutscript_school_id_param' : schoolName,
'cutscript_school_std_roy_perc': standardRoyalty,
'cutscript_lf_school_hdwr_roy_perc': headwearRoyalty,
'cutscript_lf_school_spec_roy_perc': specialRoyalty
}
})
Kevin Baxter
08/17/2023, 8:40 PMClay Roper
08/17/2023, 8:46 PMcutscript_...
which is missing an s
and should be custscript_...
battk
08/17/2023, 8:49 PMbattk
08/17/2023, 8:49 PMKevin Baxter
08/17/2023, 8:51 PMKevin Baxter
08/17/2023, 8:51 PMKevin Baxter
08/17/2023, 8:51 PMraghav
08/17/2023, 11:53 PMShmuel H
08/18/2023, 4:36 PM// on the user event script (or any script you want to call the scheduled script)
const taskObj = task.create({
taskType: task.TaskType.SCHEDULED_SCRIPT,
scriptId: 'scriptId',
deploymentId: 'deploymentId',
params: {
custscript_param_id: '1234'
}
})
taskObj.submit()
// on the scheduled script
const paramId = runtime.getCurrentScript().getParameter({ name: 'custscript_param_id' })