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