| name | salesforce-data-handling |
| description | Implement Salesforce data privacy, GDPR/CCPA compliance, and field-level encryption patterns.
Use when handling PII in Salesforce records, implementing data subject access requests,
or configuring Salesforce Shield encryption.
Trigger with phrases like "salesforce data privacy", "salesforce PII",
"salesforce GDPR", "salesforce data retention", "salesforce encryption", "salesforce CCPA".
|
| allowed-tools | Read, Write, Edit |
| version | 1.7.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","crm","salesforce"] |
| compatibility | Designed for Claude Code |
Salesforce Data Handling
Overview
Handle sensitive data correctly when integrating with Salesforce: PII classification, GDPR/CCPA compliance with Salesforce's Individual object, data retention, and field-level encryption.
Prerequisites
- Understanding of GDPR/CCPA requirements
- Salesforce org with data classification enabled (Setup > Data Classification)
- For encryption: Salesforce Shield license (Platform Encryption)
Instructions
Step 1: Salesforce Data Classification
const conn = await getConnection();
const contactMeta = await conn.sobject('Contact').describe();
const sensitiveFields = contactMeta.fields
.filter((f: any) => f.compoundFieldName === null)
.map((f: any) => ({
name: f.name,
label: f.label,
type: f.type,
encrypted: f.encrypted || false,
}));
const : <, []> = {
: [, , , , , ],
: [, , , , ],
: [, ],
: [, , ],
: [, , ],
};