AMPscript
Add
Perform
Remove
Retrieve
Update
Validate Your Server-Side JavaScript using WSProxy
Updates a query definition and returns a status of OK or an error message
Update(1)
| Ordinal | Type | Description | |
|---|---|---|---|
| 1 | object | Required | Attributes for query definition to change |
This sample code updates the name and query of the query definition:
1var qd = QueryDefinition.Init("myQueryDef");
2
3var status = qd.Update({
4 Name : "Updated Query Definition Name",
5 QueryText : "SELECT SubKey, Email, Name FROM [Example Target DE] where FavoriteItemID=12"
6});