inputContext.ObjectRef

Object Description

A plain object that defines the input data. For example, a SuiteQL query. You can return such object from getInputData(inputContext).

Since

2015.2

Syntax

The following code snippet shows the syntax for this member. It is not a functional example. For a complete script example, see Map/Reduce Script Samples.

These are examples of object references.

          { type: 'query', id: 123 }
{ type: 'search', id: 123 }{ type: 'file', id: 123 }
{ type: 'file', path: '/SuiteScripts/data/names.txt' }  // absolute path required
{
    type: 'suiteql',
    query: 'SELECT id, email FROM Employee WHERE currency = ?',
    params: [currency]
} 

        

Related Topics

inputContext
inputContext.isRestarted

General Notices