Query Definition Functions
The Query Definition server-side JavaScript functions allow you to manipulate queries via server-side JavaScript in the following ways:
- Create
- Retrieve
- Update
- Delete
- Run
In your server-side JavaScript code, first load the core library using this syntax:
To interact with a query definition via server-side JavaScript, you must first initialize the object. The code below initializes a query definition with the external key of 'myQueryDef'.
Once you initialize the query definition, you can use the applicable server-side JavaScript functions.