小编Gan*_*i H的帖子

从 Restlet 触发 MAP/Reduce 脚本时权限不足

当我使用任务模块从 RESTlet 调用 MAP/REDUCE 脚本时,我遇到了以下问题,沙盒中的配置明智似乎很好。但我无法触发 MAP/REDUCE 脚本。任何机构都可以请帮助解决这个问题..

{"type":"error.SuiteScriptError","name":"INSUFFICIENT_PERMISSION","message":"You do not have privileges to perform this operation","stack":["submit(N/task)","doPost(/SuiteBundles/Bundle 10009/Solarwind_Import_Trsansaction_RESTlet.js:122)"],"cause":{"type":"internal error","code":"INSUFFICIENT_PERMISSION","details":"You do not have privileges to perform this operation","userEvent":null,"stackTrace":["submit(N/task)","doPost(/SuiteBundles/Bundle 10009/Solarwind_Import_Trsansaction_RESTlet.js:122)"],"notifyOff":false},"id":"","notifyOff":false}
Run Code Online (Sandbox Code Playgroud)

代码是:

var mrTask = task.create({
    taskType : task.TaskType.MAP_REDUCE
});

mrTask.scriptId = 'customscript_sw_jsondata_mapreduce';
mrTask.deploymentId = 'customdeploy_sw_jsondata_mapreduce';
mrTask.params = 
{
    custscript_sw_jsondata_mapreduce_para : requestBody
};

mrTask.submit();
Run Code Online (Sandbox Code Playgroud)

谢谢,加纳帕蒂

netsuite

2
推荐指数
1
解决办法
1124
查看次数

标签 统计

netsuite ×1