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
CategoryIDInt64The ID of the folder that contains the data extension.
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 objectThe units for the data extension retention period. Accepted values are Days, Weeks, Months, and Years.
DataRetentionPeriodLengthInt32The number of time units data is retained for. Use this property together with DataRetentionPeriodUnitOfMeasure to specify the data retention period.
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 objectsAn object that specifies the fields contained in the 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 in test sends.
ModifiedDateDateTimeThe date and time when the data extension was last modified.
NameStringThe name 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.
RetainUntilStringThe end date for the retention period of the 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 objectThe field in a sendable data extension to use as an address in a send. Accepted values are SubscriberID, CustomerKey, or EmailAddress. Marketing Cloud Engagement uses this field to create a relationship between the value specified by the SendableSubscriberField property and a value in a sendable data extension.
SendableSubscriberFieldAttribute objectThe field to use as the sending address. Marketing Cloud Engagement uses this field to establish a relationship between a subscriber field and a value specified by the SendableDataExtensionField property. Accepted values are SubscriberID, CustomerKey, and EmailAddress.
StatusStringThe status of the data extension object.
TemplateDataExtensionTemplate objectThe template used to create the data extension.

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