Netsuite Suitescript API - Searching Transaction records returns duplicates

后端 未结 1 354
不知归路
不知归路 2020-12-21 13:30

I am attempting a basic search query of the \'transaction\' records (I have also attempted this with \'salesorder\' with similar results). The query has no filters, and req

相关标签:
1条回答
  • 2020-12-21 14:13

    Please add a filter,

    mainline is TRUE

    If you are using saved search via code, please add additional filter

    as new nlobjSearchFilter('mainline', null, 'is', 'T') or ['mainline', 'is', 'T']

    as the search result pull up the same internal id, multiple times for all line items

    EDIT: For the provided code example

    var columns = [];
    columns.push(new nlobjSearchColumn('internalid'));
    
    var searchResults = nlapiSearchRecord('transaction', null, ['mainline', 'is', 'T'], columns);   
    
    return searchResults; 
    
    0 讨论(0)
提交回复
热议问题