Update

Overview 

Updates a query definition and returns a status of OK or an error message

Syntax 

Update(1)

Function Properties 

OrdinalTypeDescription
1objectRequiredAttributes for query definition to change

Example 

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});