English · IndiaLog in
Rackwave Technologies
Request quote Free consultation
CRMUpdated 26 Nov 2026

SFMC Data Extensions: Design, Keys and Retention

SFMC data extensions: types, design, population, retention and governance.

Written by Rohan Verma
  • Published25 Nov 2026
  • Read time6 min
  • Length1,301 words
Share this guide

What are SFMC data extensions? Data extensions are tables in Salesforce Marketing Cloud that store structured data about contacts, products, transactions or any other records, and they are the main way to hold audiences and personalisation data for email, SMS, push and journeys. A data extension has fields with types and lengths, an optional primary key, and can be sendable, meaning it can be used as the audience for sends. This guide explains what data extensions are, how they differ from lists, how to design fields and keys, how they are created and populated, how to relate them to contacts, how to manage size and retention and the mistakes that cause failed sends or slow queries. Interfaces and limits change, so confirm details in current Salesforce documentation.

Short answer: Data extensions are flexible tables for audiences and personalisation data. Careful design of fields, keys, sendable relationships and retention makes sends reliable and queries fast.

What are SFMC data extensions?

They are the data layer used across what is SFMC. They supply audiences to Email Studio, are populated by Automation Studio and SQL queries, and connect to the contact model in Contact Builder. They are more flexible than the subscribers and lists model. For personalisation, see AMPscript.

Data extensions compared with lists

Diagram comparing data extensions and lists: structure, size, keys, sendability, relationships and use cases
Figure 1. Data extensions offer custom fields, keys and relationships, while lists are tied to the subscriber model with fixed attributes.
AspectData extensionList
StructureCustom fields, types and lengthsSubscriber attributes, limited structure
ScaleBetter for large volumesSuitable for smaller audiences
KeysPrimary key optionSubscriber key and email
RelationshipsLink to other data extensions and contactsLimited
SendableYes, if mapped to a subscriber key or email fieldYes
Typical useAudiences, transactions, product and reference dataSimple subscription lists

Types of data extension

TypeDescriptionExample
SendableHas a field mapped to the subscriber key or email, so it can be a send audienceDaily campaign audience
Non sendableReference or lookup data not used as an audienceProduct catalog, store list
StandardA table you define yourselfCustomer attributes
FilteredCreated from another data extension by rulesActive customers
RandomCreated from a random sample of a data extensionTest group
SynchronisedData synced from another cloud, such as Sales CloudCRM contacts

Designing a data extension

  1. Define the purpose and who will use it, and choose sendable or non sendable.
  2. Choose a stable primary key, such as a customer id, to prevent duplicates.
  3. Use correct data types, such as date for dates and number for numbers.
  4. Set field lengths with room for growth, and avoid very wide text where not needed.
  5. Mark required fields and set defaults where sensible.
  6. Use consistent naming for fields across data extensions.
  7. Set a retention policy if data should expire.

Populating data extensions

  • Import files from SFTP with an automation.
  • Use SQL queries to build audiences from other data extensions.
  • Use the API to insert or update rows from your systems.
  • Use synchronised data extensions for connected Salesforce data.
  • Use Journey Builder to write data during journeys.
  • Always validate counts and sample rows after a load.

How to manage data extensions in practice

  1. Plan the model. List entities, relationships and who owns each.
  2. Create the structure. Define fields, keys and sendable settings.
  3. Load sample data. Test imports and queries with a small data set.
  4. Build automations. Refresh data on a schedule with validation.
  5. Set retention and cleanup. Remove old rows and unused tables.
  6. Control access. Use folders and permissions for sensitive data.
  7. Monitor. Track row counts, load failures and query times.

Common mistakes

  • No primary key, which allows duplicate rows and confusing results.
  • Wrong data types, such as storing dates as text.
  • Sendable data extensions mapped to the wrong field.
  • Overwriting production tables with unvalidated loads.
  • Keeping years of data that is never used, slowing queries.
  • Poor naming that makes tables hard to find and reuse.

Our data analytics service designs marketing data models and our CRM and lifecycle service implements them in Marketing Cloud.

A worked example: modelling retail data

A retailer creates a customer data extension with customer id as primary key, email, language, consent flags and loyalty tier. An order data extension holds order id, customer id, date, total and channel, and a product data extension holds product attributes for personalisation. Only the customer data extension is sendable.

An automation imports files nightly into staging tables, validates counts, then updates production tables. A SQL query builds a daily audience from customers with consent who have not ordered recently. A retention rule removes order rows older than three years after they are archived in the warehouse. Query times drop and sends become predictable.

Retention, size and performance

Data extensions grow quickly, and large tables slow queries and sends. Set retention on tables that do not need long history, archive old data in a warehouse and avoid copying the same data into many tables. Use primary keys to speed lookups, keep fields lean and build staging tables for transformations. Review the largest data extensions each quarter, delete unused ones and record owners so that old tables do not accumulate.

Privacy and access

Data extensions often hold personal data. Limit access by folder and role, avoid storing sensitive fields that you do not need, and keep consent and preference data current. Support deletion and access requests by being able to locate a person across tables, and document where personal data lives. Encrypt files used for loading and remove them after processing. See what is data governance for broader principles.

Common data extension patterns

Several patterns recur in healthy accounts. A master customer table holds one row per person with consent and key attributes. Transaction tables hold orders or interactions linked by customer id. Reference tables hold products, stores or content for lookups in AMPscript. Daily audience tables are rebuilt by queries from the master and transaction tables, and log tables record what each automation did. Keeping these roles separate makes the model easier to understand, lets you refresh audiences without touching master data and gives you a clear place to look when something goes wrong. Name tables by role so that new team members can find the right one quickly.

Testing and validating loads

Every load should be checked. Compare row counts with the source file, confirm that required fields are not empty, sample records to check data types and look for unexpected duplicates on the key. Load into a staging table first, run validation queries, and only then update the production table. Keep a log of load times and counts, and alert when a load is much smaller or larger than normal. These checks catch most data problems before they reach a send.

Naming and folder organisation

Use a consistent naming convention that shows purpose, source and refresh pattern, for example audience daily engaged customers or staging orders import. Organise tables into folders by business area, restrict access to sensitive folders and keep a register that lists each table, owner and retention rule. Archive or delete tables that are no longer used. A tidy structure saves time, reduces errors and makes handovers easy.

Key takeaways

  • Data extensions are flexible tables in Marketing Cloud for audiences, transactions and reference data.
  • Sendable data extensions can be used as send audiences, while non sendable ones serve lookups.
  • Design with a primary key, correct data types, consistent names and retention.
  • Populate through imports, SQL, API, synchronisation and journeys, and validate each load.
  • Control access, size and performance as data grows.

Quick glossary

TermMeaning
Data extensionA table of structured data in Marketing Cloud
Primary keyA field that uniquely identifies each row
SendableUsable as an audience for sends
Staging tableA temporary table used to validate data before production use
Retention policyA rule that deletes data after a period

Read next: What Is Lead Routing? Methods, Rules and Metrics · What Is a Sales Playbook? Contents and How to Build · What Is Account Planning? Template and Best Practices

Frequently asked questions

What is a data extension?

It is a table in Marketing Cloud that stores structured data for audiences, personalisation and reference.

What is a sendable data extension?

One that has a field mapped to the subscriber key or email, so it can be used as a send audience.

Data extension or list?

Data extensions suit larger and more flexible data, while lists suit simple subscription needs.

Do I need a primary key?

It is strongly recommended to avoid duplicates and speed lookups.

How do I load data?

Import files, run SQL queries, call the API, sync from other clouds or write from journeys.

How do I keep data extensions fast?

Set retention, use primary keys, keep fields lean and avoid copying large tables unnecessarily.

Can data extensions relate to each other?

Yes, through relationships and keys, which is used with Contact Builder and for lookups.

How do I protect personal data?

Use folder permissions, store only needed fields and support deletion requests across tables.

Was this guide helpful?Your answer helps us decide what to improve. It is not linked to you.

#sfmc data extensions#salesforce marketing cloud data extensions#sendable data extension#data extension vs list#marketing cloud data model

About the author

Rohan Verma

Data Platforms Consultant

Rohan works across CDP, data warehouse, and analytics platform implementations, helping clients figure out which data infrastructure actually fits their scale rather than defaulting to whatever's currently trending.

Data Platforms & Technical Architecture

Ready to put AI and data to work?

Book a free consultation and leave with a plan, not a pitch.

Get a free consultationRequest quote