AMPscript
Add
Perform
Remove
Retrieve
Update
Validate Your Server-Side JavaScript using WSProxy
The Query Definition server-side JavaScript functions allow you to manipulate queries via server-side JavaScript in the following ways:
In your server-side JavaScript code, first load the core library using this syntax:
1Platform.Load("core","1");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’.
1var qd = QueryDefinition.Init("myQueryDef");Once you initialize the query definition, you can use the applicable server-side JavaScript functions.