Business Problem
The same email address can exist on multiple Salesforce Lead and Contact records. Relying on a single record can create inconsistent consent decisions when one record is opted out and another is not.
Jermaine Brewer
Salesforce and Marketing Automation Consultant • JB Consulting
Data 360 • Consent Management • Data Transformation
A sandbox proof of concept that turns Salesforce Lead and Contact email opt-out data into standardized marketing consent in Data 360 (formerly Data Cloud) while honoring duplicate-email scenarios.
The same email address can exist on multiple Salesforce Lead and Contact records. Relying on a single record can create inconsistent consent decisions when one record is opted out and another is not.
Built a Data Cloud batch transformation that combines Lead and Contact source data, normalizes email addresses, applies an any-opt-out-wins rule, and maps the result into the Communication Subscription Consent data model for marketing email consent.
The proof of concept was tested with one Contact and two Leads sharing the same email address. Opting out the Contact caused all three Data Cloud consent records to resolve to OPT_OUT. Unchecking the Contact again returned all three records to OPT_IN because the two Leads were already unchecked.
A subsequent integration project expanded this consent work beyond CRM to include consent events arriving from a separate survey platform. This is a distinct use case with a different business rule: the latest recorded consent action wins across sources, rather than the initial CRM-only any-opt-out-wins proof of concept shown above.
In UAT, the consolidated transform was validated and populated a Contact Point Consent DMO. A CRM write-back Flow was built and validated but remained inactive pending end-to-end approval and production-readiness testing.
The work demonstrates source reconciliation, cross-platform data transformation, Salesforce Flow write-back design, and careful separation of validated behavior from production activation. Client identities and system-specific configuration are intentionally omitted from this public case study.
This design gives Data Cloud a consistent effective consent state across duplicate Salesforce records, reduces conflicting marketing preferences, and creates a reusable pattern for future consent channels.