2016-07-12 41 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>)