“未分配”的内部ID是什么?我已经尝试过0,-1,null,但是已经没有想法......
var unassigned = 'WHAT IS IT?';
var filters = new Array();
filters.push(new nlobjSearchFilter(nsIds.customerAreas_relatedCustomer, null, 'anyOf', unassigned));
var columns = new Array();
var nameColumn = new nlobjSearchColumn('name', null);
columns.push(nameColumn);
var searchResult = nlapiSearchRecord('customrecord_test', null , filters , columns);
答案 0 :(得分:1)
试试这个:
filters.push(new nlobjSearchFilter(nsIds.customerAreas_relatedCustomer, null, 'anyOf', '@NONE@'));