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

Search for records that have unassigned field in SuiteScript

'unassigned' 的内部 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);

试试这个:

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