Modules

filter

 

Objects/Functions

module (N/query)

SuiteScript 2.0

Condition.type

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

N/query Module
Condition.type
Property Description: The return type of the formula used to create the condition. This property is set during the execution of Query.createCondition(options) or Component.createCondition(options). For more information on formulas, see Formulas in Search and SQL Expressions. This property is not applicable to parent conditions created with the execution of Query.and(conditions), Query.or(conditions), or Query.not(condition).
Type: string (read-only)
Module: N/query Module
Parent Object: query.Condition
Sibling Object Members: Condition Object Members
Since: 2018.1
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=Condition.type

Example:

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

var myFormulaCondition = myTransactionQuery.createCondition({
formula: '{amount} * 125',
operator: query.Operator.GREATER,
values: 50000,
type: query.ReturnType.CURRENCY
});

var theFormulaType = myFormulaCondition.type;
//...
// Add additional code

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