https://netsuiteprofessionals.com logo
#suitescript
Title
# suitescript
c

Cory Weiner

04/08/2022, 1:11 PM
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

tech_ph2019

04/08/2022, 1:36 PM
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