Create a Data Extension
Use a data extension to store information about your subscribers.
This example creates a data extension to import or store data. After the data extension is created, associate it with an import definition. This example maps EmailAddress field of the data extension to the EmailAddress field to create a data extension used to store the audience of an email send.
While you can create a data extension with an external key larger than 36 characters, doing so may cause problems when using the data extension in conjunction with other processes (especially if working with the UI, which truncates the external key to the first 36 characters). Limit your data extension external keys to 36 characters to help ensure all further processes function correctly.
This sample code demonstrates how to create a data extension using the subscriber key feature:
The SOAP envelope below creates a data extension with a non-nullable field by including IsPrimaryKey and IsRequired values.
The sample SOAP envelope below includes an example of data extension field types.
When creating a field with the Decimal data type in a data extension, you must set the precision and the scale of the field.
Note that the time must be passed in 24-hour format.