DataExtension

The DataExtension object represents a data extension within an account.

To clear data from a DataExtension object using the perform method, you must have the Email | Subscribers | Data Extension | Clear Data permission. Also, your account type must be E2.0 or BU, or you must have the role-based access control business rule. If you don't own the data extension, you can't clear its data.

If your account uses data extension retention policies, you must have the Data Extension | Manage Data Extension Retention permission to create or update a DataExtension object that has data retention properties. The data retention properties are DataRetentionPeriod, DataRetentionPeriodLength, DataRetentionPeriodUnitOfMeasure, RowBasedRetention, ResetRetentionPeriodOnImport, DeleteAtEndOfRetentionPeriod, and RetainUntil.

NameData TypeDescription
CategoryIDInt64Specifies 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.
DataRetentionPeriodDateTimeUnitOfMeasure objectSpecifies the period during which the application retains the data within a data extension. Valid values are:
  • Days
  • Weeks
  • Months
  • Years
DataRetentionPeriodLengthInt32Specifies the number of time units data is retained for. This property is used with DataRetentionPeriodUnitOfMeasure to specify the full data retention time.
DataRetentionPeriodUnitOfMeasureInt32Deprecated. Use DataRetentionPeriodLength and DataRetentionPeriod instead.
DeleteAtEndOfRetentionPeriodBooleanIndicates whether data is deleted at the end of the retention period. If the value is true the application deletes the entire data extension. If the value is false, the application deletes the data within the data extension but retains the data extension itself.
DescriptionStringDescribes and provides information regarding the object.
FieldsArray of DataExtensionField objectsSpecifies fields contained within a data extension.
IDInt32Read-only identifier for an object. Some objects use the ObjectID property as a unique ID.
IsSendableBooleanIndicates whether you can use a data extension as part of an audience for a message send.
IsTestableBooleanIndicates whether a sendable data extension can be used within tests sends for a message.
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.
OwnerOwnerDescribes 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.
ResetRetentionPeriodOnImportBooleanIndicates whether a data retention period is reset after a successful import of new data. A value of true indicates that the data retention period resets to the beginning upon completion of a successful data import. A value of false indicates that the data retention period continues from the original starting point.
RetainUntilStringIndicates the date that ends the retention period for a data extension. Verify that the value passed to this property is correctly formatted based on the Date Format setting of the API user.
RowBasedRetentionBooleanIndicates whether the data retention policy removes data by row or deletes all data in an entire data extension. If the value is true, individual rows are removed from the data extension when the retention period expires. If the value is false, the entire data extension is deleted when the retention period expires.
SendableDataExtensionFieldDataExtensionField objectIndicates the field within a sendable data extension to use as an address as part of a send. Possible values are SubscriberID, CustomerKey, or EmailAddress. The application uses this field to establish a data relationship between a value specified by the SendableSubscriberField property and a value within a sendable data extension.
SendableSubscriberFieldAttribute objectIndicates field to use as sending address. The application uses this field to establish a data relationship between a subscriber field and a value specified by the SendableDataExtensionField property.
StatusStringDefines status of object.
TemplateDataExtensionTemplate objectIndicates the template used to create a data extension.

The DataExtensionObject object doesn't support LIKE operators in filters for the retrieve method.