Recipient 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

Load

In your server-side JavaScript code, first load the core library using this syntax:

Use the sample code below as models for your own server-side JavaScript code.

Initialize

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.