有谁知道或有一个我可以用于SS2.0的JSDOC定义库?
我对SS1.0的当前版本如下所示,我用它来插入我的IDE并获得自动完成功能.
/** * Loads an existing saved search. The saved search could have been created using the UI, or created using nlapiCreateSearch(type, filters, columns) in conjunction with nlobjSearch.saveSearch(title, scriptId).
*<br>API Governance: 5
* @param {String} recType [optional] - The record internal ID of the record type you are searching (for example, customer|lead|prospect|partner|vendor|contact). This parameter is case-insensitive.
* @param {String} searchId - The internal ID or script ID of the saved search. The script ID of the saved search is …Run Code Online (Sandbox Code Playgroud) 遇到一种愚蠢的问题.
我想在map/reduce脚本的阶段之间传递变量.是否存在"官方"或最佳方式(而不是使用返回的结果发送).
这是我的最后一种方法:
/**
* @NApiVersion 2.0
* @NScriptType MapReduceScript
*/
define(["N/search", "N/record", "N/email", "N/runtime", "N/task", "/SuiteScripts/Libraries/tools_lib"],
function (search, record, email, runtime, task, tools) {
var ss = runtime.getCurrentSession();
var conf = {};
/**
* Retrieve the CSV contents and return as an object
* @return {Array|*}
*/
function getInputData() {
log.debug("setting", "foo");
ss.set({name: "foo", value: "bar"});
//Session
var foo = ss.get({name: "foo"});
log.debug("foo 1", foo);
//var pass
conf["foo"] = "bar";
return [1, 2, 3];
}
/**
* Search and …Run Code Online (Sandbox Code Playgroud)