How to Create a Data Extension in Marketing Cloud (2 Ways)

Share this article...

Creating Data Extensions in Marketing Cloud is one of the most important aspects to learn. Data Extensions can be a tricky topic to learn, and the fact that there are more than one way you can create a Data Extension and add contacts to it can cause confusion.

In this guide, I share two ways you can set up a Data Extension, through Email Studio, or by using Contact Builder. There are subtle differences between the two, which I will point out as we go. I have also included a video walkthrough for each one to guide you.

“Validity”

1. Email Studio

Here is how to create a Data Extension using Email Studio.
Once you’re inside Email Studio, you can navigate to ‘ Subscribers’ → Data Extensions in the drop down.

This brings me to the overview screen. If you’re new to Marketing Cloud, these data extensions may be there by default because they are system generated. On the left hand side, you can also see profile management, preference management, and others – but these are more for working with lists.

Find the ‘create’ button on the top right. I will just go for the ‘Standard Data Extension’ for this tutorial, but there is also the option to create a a filtered data extension.

Now I’m on the ‘Create Data Extension’.

  • Creation method: I can choose to create a new data extension, a data extension from a template, or from an existing data extension. I’ll simply call it ‘Subscribers data extension 1’.
  • External Key: I can also choose to give it an external key. This can be useful if you’re using the API, but usually you don’t have to worry about it (it will be auto-filled).
  • Is Sendable? Is Testable?: Two very important options! If you ever want to use email addresses in this data extension and send an email to it, you’ll definitely want to make sure it’s sendable.
  • Campaign Association (optional): you can also link it to a campaign, to be honest, I have not used this feature too much myself, so I will skip that.

Next, we can choose a data retention policy. This allows you to wipe records in this data extension, or even wipe the data extension itself after a given time. This may be for compliance reasons, maybe because you simply want to keep a tidy database.

Now we get to the most important section, which is where we define the fields for our data extension. A data extension is essentially a table, so think of these fields pretty much as the columns that we’ll have later on.

For this example, we’re talking about subscribers, so let’s start with the email field. Notice that now I can define the data type – let me quickly cover the options:

  • Text: a text string, which can also contain numbers.
  • Number: can only be a numerical character.
  • Date: date fields in Marketing Cloud are quite special, because it’s actually date time (see side note)
  • Boolean: true or false.
  • EmailAddress
  • Phone
  • Decimal
  • Locale

Note on date fields in Marketing Cloud: because date fields are actually date/time, you can also have the hour and the minutes included. Dates are saved in a specific time zones, which is something that you will want to consider, especially if you’re a global organization and not all based in the set time zone in Marketing Cloud.

  • Primary key: you can see that there’s the checkbox called primary key. A primary key ensures that the values that we’re going to provide for the email address are unique.
  • Nullable: if we have to provide a value or not. By checking this for ‘first name’, Marketing Cloud will accept a null value (or no value) for the first name, which could be empty in cases where we don’t know that about our subscribers.
  • Default value: I set a default value for my ‘active’ checkbox field, making it ‘true’. Any subscribers we add to this list will be active by default, unless we specify that they are not active (false).

At the bottom, you will also see ‘Send Relationship’. This defines which fields you’re going to relate to your subscribers based on the subscriber key (eg. the email field). ‘Subscribers’ (highlighted in the image below) is essentially the master list of all your contacts inside of Email Studio.

We already mentioned earlier, that in this table, email address will always be unique because it has primary key flag. In addition, we’re also going to say that this is actually the unique identifier linked to the subscriber key for our master table of all contacts, which is a very key notion in Salesforce Marketing Cloud.

After creating the data extension, it will return us to the overview screen. Let’s have a quick look to see if it looks like we expected. On the left-hand side, you can see that an external key has been automatically populated. You can also see that it’s used for sending, the subscriber relationship, and lastly, on the right-hand side, we can see the different fields that we added, including their settings.

Watch the video walkthrough:

2. Contact Builder

Here is how to create a Data Extension using Contact Builder.
From the overview screen, navigate to ‘Audience Builder’ → ‘Contact Builder’ in the drop down.

You will see this screen:

This overview that you now see of your existing data extensions is similar to the one that you have available in Email Studio:

Go straight to ‘Create’, and the screen we get to has many options that are the same as what I covered in the Email Studio section.

Give your data extension a name, make sure that this DE is sendable and testable.

We’ll be giving it some attributes. Note that there are little differences between the way data extensions are managed in Email Studio vs. Contact Builder, eg. primary key was an option on the right hand side in Email Studio.

The attributes I’m going to add are: email address, first name, last name, and why not add ‘Active’ (a boolean true/false option).

I made email address the primary key, which is the unique identifier of subscribers, so that automatically becomes required.

You can make other fields required too. This is one of the subtle differences between Email Studio and Contact Builder when creating a data extension. If you want fields that are not required in Email Studio, you actually have to flag something they call ‘nullable’. Here in Contact Builder, it’s a bit clearer because it’s called ‘required’ and it’s unchecked by default.

Once again, I need to define a ‘Send Relationship’; in this case it’s already defined. Also note here, I can only take ‘subscriber key’ as the relation, which is fine, because it’s usually what you want.

Let’s click complete. There you go, it’s been created! Now let’s check out this new DE that we created.

On the left hand side, pretty much the same settings as we had in Email Studio, with a few key differences. Here, we have some control settings that allow us to set permissions on this date extension. This is useful to protect the data extension and only up permissions to those who need it, that is, the team that prepares the data in Marketing Cloud, an admin or a technical marketer, perhaps.

On the right hand side, there are nuances to how the information is displayed, eg. then the field is type ‘email’, it will have an @, whereas if it’s text, it will have this ABC icon.

Watch the video walkthrough:

Leave a Reply