QueryDefinition

The QueryDefinition object represents a SQL query activity accessed and performed by the SOAP API.

  • To update a QueryDefinition where the CategoryID is greater than 0, you need the Email | Interactions | Activities | Query | Move permission.
  • To start a QueryDefinition using the perform method, you need the Email | Interactions | Activities | Query | Move permission.
NameData TypeDescription
CategoryIDIntSpecifies the identifier of the folder.
ClientClientID objectSpecifies the account ownership and context of an object.
CorrelationIDStringIdentifies correlation of objects across several requests.
CreatedDateDateTimeThe date and time when the object was created.
CustomerKeyStringUser-supplied unique identifier for an object within an object type. This property corresponds to the external key assigned to an object.
DataExtensionTargetInteractionBaseObject objectIndicates data extension to use as a template when auto-generating a new data extension. To ensure that the query activity targets the correct data extension, specify a unique external key for each data extension. For Enterprise 2.0 accounts, the external key must be unique among business unit and enterprise shared data extensions.
DescriptionStringDescribes and provides information regarding the object.
FileSpecStringDefines the file-naming pattern associated with an activity (valid substitutions include%%YEAR%%, %%MONTH%%, and %%DAY%%).
FileTypeStringSpecifies column delimiter of a file. Valid values include:
  • CSV
  • TAB
  • Other
IDIntRead-only identifier for an object. Some objects use the ObjectID property as a unique ID.
InteractionObjectIDStringReturns associated ID for activities within the asynchronous process of the overall conversation or program.
KeywordStringNot used.
ModifiedDateDateTimeThe date and time when the object was last modified.
NameStringName of the object or property.
ObjectIDStringSystem-controlled, read-only text string identifier for object.
ObjectStateStringNot used.
OwnerOwner objectDescribes account ownership of subscriber in an on-your-behalf account.
PartnerKeyStringUnique identifier provided by partner for an object. This property is accessible only via API.
PartnerPropertiesArray of APIProperty objectsA collection of metadata supplied by the client and stored by the system. These properties are accessible only via API.
QueryTextStringSpecifies text associated with a query definition.
StatusStringDefines status of object. Status of an address.
TargetTypeStringIndicates target type for a query definition.
TargetUpdateTypeStringIndicates the target update type for a query definition.