Data Extensions in Salesforce Marketing Cloud

                         A Data Extension (DE) in Salesforce Marketing Cloud (SFMC) is a table within Contact Builder or Email Studio that stores structured data. Unlike lists, data extensions offer greater flexibility in managing customer information, allowing for relational data storage and advanced segmentation.

Types of Data Extensions

  1. Standard Data Extension
    • Manually created with custom fields.
    • Stores subscriber or non-subscriber data.
    • Used for email sending and personalization.
  2. Filtered Data Extension
    • Created by applying filters to a Standard Data Extension.
    • Automatically updated when the source data changes.
  3. Random Data Extension
    • Used for A/B testing and control groups.
    • Randomly selects subscribers based on defined percentages.
  4. Sendable Data Extension
    • Contains a Subscriber Key or Email Address.
    • Used for sending emails or SMS in Journey Builder and Automation Studio.
  5. Non-Sendable Data Extension
    • Stores additional customer data but cannot be used for sending.
    • Used for segmentation, personalization, and relational data storage. 
 

Key Features:

Relational Data Storage: Connect multiple data extensions via Primary Key relationships.

  • SQL Queries: Use SQL Query Activities in Automation Studio to manipulate data.
  • APIs: Integrate external systems to insert or retrieve data.
  • Triggered & Automated Updates: Keep data fresh with scheduled imports and real-time updates.

 

Best Practices

✔️ Use primary keys to ensure unique records.
✔️ Use Data Retention Policies to manage storage.
✔️ Optimize indexes for better performance in large datasets.
✔️ regularly clean unused or outdated data extensions.

Step-by-Step Guide to Creating a Data Extension in Salesforce Marketing Cloud (SFMC)

Follow these steps to create a Data Extension (DE) in Salesforce Marketing Cloud (SFMC) using Email Studio or Contact Builder.

 Creating a Data Extension in Email Studio

Step 1: Navigate to Data Extensions

  1. Log in to Salesforce Marketing Cloud.
  2. Click on Email StudioSubscribersData Extensions.
  3. Click Create.
 

Step 2: Define Data Extension Properties

  1. Choose “Standard Data Extension” and click OK.
  2. Enter a Name (e.g., Student_Records).
  3. (Optional) Enter a description for reference.
  4. Select a Folder to store the Data Extension.
  5. Check Is Sendable if you will use it for email sending.
  6. Check Is Testable if you want to use it for testing.
  7. Click Next.
 

Step 3: Configure Data Retention (Optional)

  1. Toggle Enable Data Retention Policy if needed.
  2. Select a Retention Period (e.g., 30 days).
  3. Choose how records should be deleted (e.g., delete all records, delete by age).
  4. Click Next.
 

Step 4: Define Fields & Data Types

  1. Click Create New Fields to define columns in the table.
  2. Add Field Names, Data Types, and Primary Keys:
    • S_No (Text, Primary Key, Required)
    • Student_Name (Text, Optional)
    • Age (Number, Optional)
    • Email_ID(EmailAddress, Optional)
    • City(Text, Optional)
    • Phone_Number(Phone, Optional)
  1. Click Next.
 

Step 5: Review & Save

  1. Review all settings (Name, Fields, Retention).
  2. Click Save to create the Data Extension.
 

 Additional Actions

  • Import Data: Use Import Wizard to upload CSV files.
  • Query Data: Use SQL Query Activity in Automation Studio.
  • Connect External Data: Use APIs for integration.

Filtered Data Extension in Salesforce Marketing Cloud (SFMC)

A Filtered Data Extension (FDE) is a subset of data from an existing Standard Data Extension. It allows you to create segmented lists without writing SQL queries. This is useful for targeted marketing campaigns, personalization, and audience segmentation.

Key Features of Filtered Data Extensions

 No SQL Required – Created using drag-and-drop filters.
 Dynamic Updates – Automatically updates when the source data changes.
 Sendable & Non-Sendable – Can be used for email sends or segmentation.
 Reusability – You can create multiple filtered extensions from one Standard DE.

Step-by-Step Guide to Creating a Filtered Data Extension

Step 1: Navigate to Data Extensions

  1. Log in to Salesforce Marketing Cloud.
  2. Go to Email StudioSubscribersData Extensions.
  3. Locate the Standard Data Extension you want to filter.
  4. Click on it, then select Create Filtered Data Extension.

Step 2: Apply Filters

  1. The Filter Builder screen opens.
  2. Drag fields from the Available Fields section to the Filter Criteria panel.
  3. Set filter conditions, such as:
    • City = “Bangalore”
    • Age > 19

  4. Click Validate to check the logic.

Step 3: Save the Filtered Data Extension

  1. Click Save As.
  2. Enter a Name for the new Data Extension.
  3. Select a Folder to store it.
  4. Choose whether it should be Sendable or Non-Sendable.
  5. Click Save.

Updating a Filtered Data Extension

Filtered Data Extensions update automatically when the source Data Extension is updated. You don’t need to manually refresh them unless you create a copy instead of a dynamic filter.

Use Cases for Filtered Data Extensions

  • Targeted Email Campaigns (e.g., segmenting VIP customers).
  • Personalized Marketing (e.g., filtering users by interests or behavior).
  • Event-Based Marketing (e.g., customers who signed up within the last 30 days).
  • Geolocation-Based Campaigns (e.g., targeting users in specific countries).

Random Data Extension in Salesforce Marketing Cloud (SFMC)

A Random Data Extension is used to randomly segment data from an existing Standard Data Extension. It is often used for A/B testing, control groups, and sample audience selection for marketing campaigns.

 Key Features of Random Data Extensions

 Randomized Selection – No bias in segmentation.
 A/B Testing – Split audiences for different versions of a campaign.
 Control Groups – Keep a portion of the audience out for performance comparison.
 No SQL Required – Created with a simple interface.

Step-by-Step Guide to Creating a Random Data Extension

Step 1: Navigate to Data Extensions

  1. Log in to Salesforce Marketing Cloud.
  2. Go to Email StudioSubscribersData Extensions.
  3. Find the Standard Data Extension from which you want to create a random split.
  4. Click on it, then select Create Random Data Extension.

Step 2: Define Random Groups

  1. The Random Split screen appears.
  2. Enter the number of groups (e.g., 2 for A/B testing, 3 for multi-variant testing).
  3. Adjust the percentage split for each group (e.g., 50% / 50% or 40% / 40% / 20%).
  4. Click Next.

Step 3: Save Random Data Extensions

  1. Enter names for each of the new Data Extensions (e.g., Test_Group_A, Test_Group_B).
  2. Select a Folder to store them.
  3. Choose whether each Data Extension should be Sendable or Non-Sendable.
Click Save.
banner1