Modules
Objects/Functions
SuiteScript 2.0
// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=SuiteQLTask.query for more information.
N/task Module
SuiteQLTask.query
Property Description:
SuiteQL query definition for the SuiteQL task.
The SuiteQL query definition is a string that represents a SuiteQL query. For more information, see SuiteQL.
Type:
string
Supported Script Types:
Server scripts
For more information, see SuiteScript 2.0 Script Types.
Module:
N/task Module
Parent Object:
task.SuiteQLTask
Sibling Object Members:
SuiteQLTask Object Members
Since:
2020.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=SuiteQLTask.query
Example:
// Code Example 1
// Add additional code
//...
var mySuiteQLTask = task.create({
taskType: task.TaskType.SUITE_QL
});
mySuiteQLTask.query = 'SELECT customer.entityid, customer.email FROM customer';
//...
// Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_159223864743.html