Netsuite 中上传的文件的文件名是否有任何脚本或工作流文件名的方法?
Is there any way of scripting or workflowing file names of files uploaded in Netsuite?
这尤其与在拖放功能中创建的文件有关,但适用于任何上传的文件。
是否可以使用工作流或脚本来创建命名约定,例如 {internalID}+{date}
,以便所有上传的文件都自动命名以引用它们所附加的记录?
我使用这个函数,我只是将文件名作为参数发送
function createfile( content, fileName) {
var fileObj = null,
fileObj = file.create( {
name: fileName+ '.json',
fileType: file.Type.PLAINTEXT,
contents: content,
description: 'TEST FILE .JSON',
encoding: file.Encoding.UTF8,
folder: 57,
isOnline: true
});
return fileObj.save();
}
这尤其与在拖放功能中创建的文件有关,但适用于任何上传的文件。
是否可以使用工作流或脚本来创建命名约定,例如 {internalID}+{date}
,以便所有上传的文件都自动命名以引用它们所附加的记录?
我使用这个函数,我只是将文件名作为参数发送
function createfile( content, fileName) {
var fileObj = null,
fileObj = file.create( {
name: fileName+ '.json',
fileType: file.Type.PLAINTEXT,
contents: content,
description: 'TEST FILE .JSON',
encoding: file.Encoding.UTF8,
folder: 57,
isOnline: true
});
return fileObj.save();
}