E-Commerce Data Design in Salesforce Marketing Cloud (SFMC)
🛒 E-Commerce Data Design in Salesforce Marketing Cloud (SFMC) – Complete Practical Guide
In Salesforce Marketing Cloud (SFMC), building a strong data model is the foundation of personalized marketing campaigns.
In this blog, we’ll understand a real e-commerce data design use case, along with where each part fits visually in Data Designer.
Business Goal
👉 Send personalized product recommendations based on customer purchases
Example:
Bought laptop → send accessories
Frequent buyers → loyalty rewards
Complete Data Model (Overview)
![]() |
| Full Data Designer View |
💡 This shows the complete structure:
Contact Key (root)
Customer DE
Orders DE
Order Items DE
Product DE
All relationships
Step 1: Customer Data Extension (Main Table)
![]() |
| Customer DE screen |
📌 Purpose:
This is the base table where all customer data is stored
🔑 Fields:
ContactKey
FirstName
EmailAddress
City
💡 Every table connects to this using ContactKey
Step 2: Orders Data Extension
![]() |
| Orders DE screen |
📌 Purpose:
Stores order-level data
🔑 Fields:
OrderID
ContactKey
OrderDate
TotalAmount
💡 One customer → multiple orders
Step 3: Order Items Data Extension
![]() |
| Order Items DE |
📌 Purpose:
Stores products inside each order
🔑 Fields:
ItemID
OrderID
ProductID
Quantity
💡 One order → multiple products
Step 4: Product Data Extension
![]() |
| Product DE screen |
📌 Purpose:
Stores product details
🔑 Fields:
ProductID
ProductName
Category
Price
Step 5: Relationships (Core Logic)
Now based on your Data Designer:
1️⃣ Customer → Orders
Key: ContactKey
Type: One-to-Many
👉 One customer can have many orders
2️⃣ Orders → Order Items
Key: OrderID
Type: One-to-Many
👉 One order can have multiple products
3️⃣ Order Items → Product
Key: ProductID
Type: Many-to-One
👉 Many items can point to one product
Final Data Flow
👉 Customer → Orders → Order Items → Product
This is your complete e-commerce data model
One-Line Summary
👉 Customer → Orders → Products = Complete E-commerce Data Model





Comments
Post a Comment