Netsuite Suitescript问题返回列[0]错误

Netsuite Suitescript问题返回列[0]错误,netsuite,suitescript,Netsuite,Suitescript,我正在尝试在suitescript中准备搜索,但收到一条错误消息,只是说明列[0] 我正在尝试提取与传入的客户ID相关的所有用户注释,这些字段出现在UI中保存的搜索中,但是当我尝试使用下面的代码通过代码访问它时,我似乎无法根据输入的客户ID的条件对其进行筛选 非常感谢您的帮助 下面是我的代码 var filt = new Array(); filt.push( new nlobjSearchFilter('internalid','customer','anyOf',_custo

我正在尝试在suitescript中准备搜索,但收到一条错误消息,只是说明列[0]

我正在尝试提取与传入的客户ID相关的所有用户注释,这些字段出现在UI中保存的搜索中,但是当我尝试使用下面的代码通过代码访问它时,我似乎无法根据输入的客户ID的条件对其进行筛选

非常感谢您的帮助

下面是我的代码

    var filt = new Array();
    filt.push( new nlobjSearchFilter('internalid','customer','anyOf',_customerID)   );

var cols = new Array();
    cols.push(new nlobjSearchColumn('name'));
    cols.push(new nlobjSearchColumn('internalid'));
    cols.push(new nlobjSearchColumn('author'));
    cols.push(new nlobjSearchColumn('title'));
    cols.push(new nlobjSearchColumn('memo'));
    cols.push(new nlobjSearchColumn('direction'));
    cols.push(new nlobjSearchColumn('type'));
    cols.push(new nlobjSearchColumn('company'));
        var userNotes = nlapiSearchRecord('note','customsearch_pm_user_note_search',null,filt,cols);

这一行中有一个额外的空值

nlapiSearchRecord('note','customsearch_pm_user_note_search',null,filt,cols);

正确用法是
nlapiSearchRecord(,,)

这一行中有一个额外的空值

nlapiSearchRecord('note','customsearch_pm_user_note_search',null,filt,cols);
正确的用法是
nlapiSearchRecord(,,)