搜索SuiteScript中具有未分配字段的记录

时间:2015-09-10 02:22:40

标签: netsuite suitescript

“未分配”的内部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);

1 个答案:

答案 0 :(得分:1)

试试这个:

filters.push(new nlobjSearchFilter(nsIds.customerAreas_relatedCustomer, null, 'anyOf', '@NONE@'));