NetSuite为记录上载文件

NetSuite为记录上载文件,netsuite,Netsuite,是否有一种方法允许用户通过在线表单上传文件并将其附加到记录中?我有一个自定义的记录类型,潜在资源,我已经为它创建了一个在线表单。其想法是,任何人都可以使用在线表单创建一个潜在的资源记录,并上传该记录的简历。我认为有一个文档类型字段: Document This lets you select a file cabinet document to preview or download. The field is searchable and can be added to search resu

是否有一种方法允许用户通过在线表单上传文件并将其附加到记录中?我有一个自定义的记录类型,潜在资源,我已经为它创建了一个在线表单。其想法是,任何人都可以使用在线表单创建一个潜在的资源记录,并上传该记录的简历。

我认为有一个文档类型字段:

Document
This lets you select a file cabinet document to preview or download. The field is searchable and can be added to search results.
Note: The user of the document custom field must have file cabinet access in order to view, select or upload documents.

您可能需要扮演一些角色。

通过在线表单,您指的是suitelet吗

我相信你可以通过suitelet这样的东西来做到这一点

function imageUpload(request, response) {

if (request.getMethod() === 'GET') {

    var form = nlapiCreateForm(formTitle);

    var file = form.addField('file1', 'file', 'Logo');
    file.setMandatory(true);

    form.addSubmitButton('SUBMIT');

    response.writePage(form);
}
else {
    var file = request.getFile('file1');

    // 133 is the id of the folder you want to save the file
    file.setFolder(133);
    file.setIsOnline(true);

    var id = nlapiSubmitFile(file);

}

}

是的,从我读到的所有信息来看,您无法从NetSuite之外的在线表单上传文件。