inputContext
Object Description |
This object is passed to the getInputData(inputContext) entry point function. This object includes the following properties: |
Since |
2016.1 |
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.
return {
type: 'suiteql',
query: 'SELECT id, email FROM Employee WHERE currency = ?',
params: [currency]
}
// Then, in map phase, call JSON.parse(context.value).values
// to get [123, "john@example.com"]