Modules

filter

 

Objects/Functions

module (N/search)

SuiteScript 2.0

Filter.join

// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=Filter.join for more information.

N/search Module
Filter.join
Property Description: Join ID for the search filter as a string.
Type: string (read-only)
Supported Script Types: All script types For more information, see SuiteScript 2.0 Script Types.
Module: N/search Module
Since: 2015.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=Filter.join

Example:

// Code Example 1
// Add additional code
//...
// Create a filter joined to another record type. When you create a joined filter:
// - The name property is the field ID of the field in the joined record that you are filtering on
// - The join property is the field ID of the field in the current record that contains the record
// type you want to join to
// - The operator property is the operator to use to filter the results
// - The values property contains the values to use to filter the results
search.createFilter({
name: 'joined_record_field_id'
join: 'current_record_field_id',
operator: search.Operator.IS,
values: ['valueToFilter']
});
//...
// Add additional code

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_460736328124.html