2016-07-12 40 views
0

我试着去准备在suitescript和IM搜索收到错误消息只是在陈述列[0]Suitescript问题返回列[0]错误

我试着去提取所有用户的笔记是部分相关的客户ID传入时,这些字段出现在用户界面中保存的搜索中,但是当我尝试通过代码使用下面的代码访问它时,似乎无法根据输入的客户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); 

回答

4

您在此行中有一个额外的空

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

正确的用法是nlapiSearchRecord(<recordtype>,<searchid>,<filters>,<columns>)