Is there a special permission users need to call t...
# suitescript
c
Is there a special permission users need to call the task.create / task.submit module? My users are getting “Insufficient Permission” but it doesn’t tell me what permission they need The code:
Copy code
var scriptTask = task.create({taskType: task.TaskType.SCHEDULED_SCRIPT});
scriptTask.scriptId = 1011;
scriptTask.deploymentId = 'customdeploy_project_post_create_workflo';
scriptTask.params = {custscriptproject_id: scriptContext.newRecord.id};
var scriptTaskId = scriptTask.submit();
t
add the Suitescript scheduling permission
Copy code
SuiteScript Scheduling> Allows use of an API (for example, ScheduledScriptTask.submit()) to execute an on demand scheduled script or on demand map/reduce script.
🙌 2