gpt4 book ai didi

netsuite - 从 ReSTLet 触发 MAP/Reduce 脚本时获取权限不足

转载 作者:行者123 更新时间:2023-12-02 17:23:06 25 4
gpt4 key购买 nike

当我使用任务模块从 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}

代码是:

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();

谢谢,甘纳帕蒂

最佳答案

我知道这是一篇旧帖子,但为了运行 Map/Reduce 任务,您需要在 SuiteScripts 上查看并在 SuiteScript 调度上查看完整。希望这会有所帮助。

关于netsuite - 从 ReSTLet 触发 MAP/Reduce 脚本时获取权限不足,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41168793/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com