Update

Overview

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

Syntax

Update(1)

Function Properties

Ordinal Type Description
1 object Required Attributes for query definition to change

Example

This sample code updates the name and query of the query definition:

var qd = QueryDefinition.Init("myQueryDef");

var status = qd.Update({
    Name : "Updated Query Definition Name",
    QueryText : "SELECT SubKey, Email, Name FROM [Example Target DE] where FavoriteItemID=12"
});
Last Updated: Jun 8, 2021