gpt4 book ai didi

netsuite - MODULE_DOES_NOT_EXIST SuiteScript

转载 作者:行者123 更新时间:2023-12-03 15:59:27 34 4
gpt4 key购买 nike

尝试在 NetSuite 中编辑 CUSTOMER 记录时,我遇到了以下问题。我创建的脚本非常简单。

这么简单的一段代码我可能做错了什么?

{"type":"error.SuiteScriptModuleLoaderError","name":"MODULE_DOES_NOT_EXIST","message":"Module does not exist: /SuiteScripts/BillingInfoUpdated.js","stack":[]}

脚本:
define(['N/log'], function (log) {

/**
* User Event 2.0 example showing usage of the Submit events
*
* @NApiVersion 2.x
* @NModuleScope SameAccount
* @NScriptType UserEventScript
* @appliedtorecord customer
*/
var exports = {};

function afterSubmit(scriptContext) {
log.debug({
"title": "After Submit",
"details": "action=" + scriptContext.type
});
}

exports.afterSubmit = afterSubmit;
return exports;
});

最佳答案

将 .js 添加到脚本文件名的末尾

关于netsuite - MODULE_DOES_NOT_EXIST SuiteScript,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42961018/

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