What governance strategies ensure long-term data quality and hygiene across large Sales Cloud implementations?
Answer
Basics: Bad data (duplicates, stale opportunities, missing fields) wrecks forecasts and trust. Governance defines who owns each object, which fields are mandatory and when, and how issues are found and fixed.
How it works:
- Prevent: required fields via page layout or field definition, validation rules, restricted picklists and global value sets, record types and Path guidance, Flow screens that capture data in the right sequence.
- Dedupe: matching rules plus duplicate rules (Alert or Block), and Duplicate Jobs where licensed.
- Detect: dashboards of data-quality KPIs (percent of opportunities with no next step, accounts missing industry, stale open opportunities).
- Enrich: use approved enrichment providers or integrations (Data.com was retired in 2020).
- Retain: archive or delete old data, and keep field history for audit.
- Govern: a data steward per object, a change-control process for fields, and a documented data dictionary.
Advanced / deep dive: Prevention beats cleansing, but validation rules that are too strict drive workarounds and integration failures, so use bypass via custom permissions for integrations. Field-level audit: Field History Tracking covers 20 fields per object, retained 18 months in the UI and 24 months via API; Field Audit Trail (Shield) extends retention to a long, configurable period. For scale, use Bulk API jobs for corrections, run scheduled Flows or Batch Apex for standardization, and track data-quality scores in a custom field. Master data across systems may need an MDM layer or Data Cloud for identity resolution. Treat metadata (fields, picklists) as governed: unreviewed field sprawl is itself data debt.
Code / config example:
-- Stale open opportunities: no activity in 90 days and close date passed
Id, Name, OwnerId, CloseDate, LastActivityDate
Opportunity
IsClosed CloseDate TODAY
(LastActivityDate LastActivityDate LAST_N_DAYS:)