Modules

filter

 

Objects/Functions

module (N/query)

SuiteScript 2.0

Component.source

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

N/query Module
Component.source
Property Description: The query type of the component joined to this component. This property can also be described as the inverse relationship of this component. This property is set during the execution of Query.joinFrom(options) and Component.joinFrom(options).
Type: string (read-only)
Module: N/query Module
Parent Object: query.Component
Sibling Object Members: Component Object Members
Since: 2018.1
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=Component.source

Example:

// Code Example 1
// Add additional code
//...
var myEmployeeQuery = query.create({
type: query.Type.EMPLOYEE
});

var myTransactionJoin = myEmployeeQuery.joinFrom({
fieldId: 'entity',
source: 'transaction'
});

var theSource = myTransactionJoin.source;
//...
// Add additional code

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