Not a Week Before Go-Live
Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.
Module 5 of 7 in the chapter Encryption: Classic, Shield and Apex Crypto, chapter 18 of Securing Salesforce: Sharing and Visibility. Each module stands on its own.
The question this module answers: The requirement says encrypt. How do you turn Shield Platform Encryption on without breaking the org, and when?
The worst time
Section titled “The worst time”I ask the room this one. When is the worst time to turn on Shield? A week before go-live, when nobody has tested what Shield does to the functionality you just built.
Some things will stop working. Then the client is angry, and they ask the question you never want to hear: “Why didn’t you know that Shield made this feature stop working?” The Data Architect course tells the same story from the data side (Don’t Turn On Shield a Week Before Go-Live). This module is how you avoid it.
So the first rule is about time, not technology. If Shield is in the mix, find out early. And if they’re going to turn it on, turn it on early, and keep it separate from your release. Don’t let it come a week before go-live, or a week after.
Encrypt only what a requirement names
Section titled “Encrypt only what a requirement names”The second rule is about the checkboxes. When the encryption policy is open, someone will want to check every field. Don’t let them. Ask the question I ask: why are we encrypting the fax field if nobody uses it? Why are we encrypting this address if it isn’t health data?
Salesforce says the same: “Encrypt only where necessary. Not all data is sensitive. Focus on information that requires encryption to meet your regulatory, security, compliance, and privacy requirements. Unnecessarily encrypting data impacts functionality and performance.” And: “Evaluate your data classification scheme early and work with stakeholders in security, compliance, and business IT departments to define requirements” (Shield Platform Encryption Best Practices (opens in a new tab), Salesforce Help, checked 2026-11-26).
That’s why classification comes first (module 1): the field list should come from the classification and the requirement, recorded on each field (chapter 4, module 6), not from whoever has the policy page open.
What stops working
Section titled “What stops working”Salesforce doesn’t hide this: “A security solution as powerful as Shield Platform Encryption doesn’t come without some tradeoffs. When your data is encrypted, it’s possible that some of your users experience limited functionality, and sometimes certain features aren’t available to them at all” (Tradeoffs and Limitations of Shield Platform Encryption (opens in a new tab), Salesforce Help, checked 2026-11-26).
The full list is long. These are the ones I’d check first on a project that’s been through this course (General Shield Platform Encryption Considerations (opens in a new tab), Salesforce Help, checked 2026-11-26):
- Criteria-based sharing rules. “Encrypted fields (standard or custom) can’t be used in: Criteria-based sharing rules.” If a rule shares records by a field, and that field gets encrypted, the rule’s design has to change first (chapter 7, module 2 says the same from the sharing side).
- Queries, filters and sorting. “You can’t include fields encrypted with the probabilistic encryption scheme in these SOQL and SOSL clauses and functions”: aggregate functions, WHERE, GROUP BY and ORDER BY. Deterministic encryption allows WHERE on fields that aren’t formulas. That touches reports, list views, integrations and your own Apex.
- Matching. “Matching and deduplication of records during lead import works with deterministic encryption but not probabilistic encryption.”
- Other features. Encrypted fields can’t be used in “Similar opportunities searches” or “External lookup relationships,” and “Einstein Lead Scoring isn’t available” when lead fields are encrypted.
- Number and currency. Number and currency fields can’t be encrypted at all (Best Practices), so a sensitive amount needs another answer.
- Apps you installed. “If you use an app from the AppExchange, test how it interacts with encrypted data in your organization and evaluate whether its functionality is affected” (Best Practices).
Remember which path these belong to. They’re field-level encryption’s limits. Database Encryption keeps filtering and sorting (module 3), which is one more reason to know which path you’re on before you plan the testing.
A full sandbox first
Section titled “A full sandbox first”Get Shield turned on, at a minimum, in your full sandbox, and test everything there before you deploy. Salesforce: “Test Shield Platform Encryption in a sandbox environment before deploying to a production environment. Encryption policy settings can be deployed using change sets.” And: “Before enabling encryption, fix any violations that you uncover. For example, if you reference encrypted fields in a SOQL ORDER BY clause, a violation occurs” (Best Practices).
A full sandbox is the right place because it has your real configuration and real volumes. It also brings a key question with it (module 4). “If Shield Platform Encryption is enabled on the production org, all encryption settings are copied to the sandbox, including tenant secrets created in production.” So: “As a best practice, rotate tenant secrets on sandboxes after a refresh. Rotation ensures that production and sandbox use different tenant secrets” (How Shield Platform Encryption Works in a Sandbox (opens in a new tab), Salesforce Help, checked 2026-11-26). With Database Encryption, new keys are generated automatically in each sandbox (same page).
One field at a time
Section titled “One field at a time”When I demoed the encryption policy, Salesforce warned me about the limitations as I picked each field. Today the steps make you slow down on purpose. Before you can encrypt a field, you “Analyze the fields that you want to encrypt with the field analyzer. This step is required before you can turn on FLE. The analysis reveals which encryption schemes are available or blocked by other configurations in your org.” And: “You can turn on FLE for multiple fields consecutively, but not in a single bulk action. This behavior is designed to encourage a careful and conservative approach” (Turn On Encryption for Standard and Custom Fields (opens in a new tab), Salesforce Help, checked 2026-11-26).
That’s the platform agreeing with “don’t check every box.”
Existing data isn’t encrypted by itself
Section titled “Existing data isn’t encrypted by itself”Here’s the one teams miss. Turning encryption on doesn’t encrypt what’s already there. “Existing field and file data is not automatically encrypted when you turn on Shield Platform Encryption” (Best Practices). New and changed records are encrypted from then on; “To encrypt field values in preexisting records, execute an encryption sync” (Turn On Encryption for Standard and Custom Fields).
You can run that sync yourself for “data in standard and custom fields, the Attachment—Content Body field, and for field history and feed tracking changes from the Encryption Statistics and Data Sync page in Setup. To synchronize all other encrypted data, contact Salesforce Customer Support” (Sync Data with Self-Service Background Encryption (opens in a new tab), Salesforce Help, checked 2026-11-26). It’s the same sync as after a key rotation in module 4, and the statistics page is how you prove it finished.
Tell the users
Section titled “Tell the users”The last step is people, not settings. “Before you enable Shield Platform Encryption in a production environment, inform users about how it affects your business solution” (Best Practices). If a list view stops sorting by a field, or a report can’t filter on it, the users should hear it from you before they find it.
The plan I’d give a project
Section titled “The plan I’d give a project”Put together, this is a plan an architect can hand a project on day one:
- Find out early. At the start of the design: is Shield in the mix?
- Decide what to encrypt. The fields a requirement names, from the classification. Not the fax field.
- Turn it on in a full sandbox. Weeks before go-live: analyze each field, then encrypt it, one at a time. Rotate the sandbox’s tenant secret after each refresh.
- Test everything that touches it. Reports, list views, sharing rules, matching, integrations, automation, your Apex and installed apps. Fix every violation.
- Tell the users what will work differently.
- Turn it on in production, as its own change, separate from the release.
- Encrypt the existing data with a sync, and check the encryption statistics.
Test knowledge. Know Salesforce’s best practices for Shield Platform Encryption: define a threat model, encrypt only where necessary, back up keys, read the considerations, test in a sandbox before production (encryption policy settings deploy with change sets), fix violations first, test AppExchange apps, and tell users before enabling it in production. Know the considerations most relevant to sharing: encrypted fields can’t be used in criteria-based sharing rules, and probabilistic fields can’t be used in SOQL and SOSL WHERE, GROUP BY, ORDER BY or aggregate functions (deterministic allows WHERE on non-formula fields). Know that existing data isn’t encrypted automatically: new and changed records are, and a sync (self-service background encryption, or Salesforce Customer Support) encrypts the rest. Know that a sandbox refresh copies the encryption settings and production’s tenant secrets, and that you should rotate them in the sandbox. A likely area, not a known question.
What an architect decides here
Section titled “What an architect decides here”- When Shield gets turned on: early, in a full sandbox, and in production as its own change, never a week before or after go-live.
- The field list, from the classification and the requirement, and who signs it off.
- What the testing covers: every report, list view, sharing rule, matching rule, integration, automation, Apex class and installed app that touches an encrypted field.
- What changes in the design first, such as a criteria-based sharing rule on a field that’s about to be encrypted.
- How existing data gets encrypted (the sync), and who checks the statistics.
- What the users are told, and when.
Beyond the exam: what AI changes. An agent is one more thing that touches encrypted fields, so it goes on the test list in step 4. If an agent’s action filters or sorts on a field that gets field-level encryption, it may stop working the same way a report would. And an agent can repeat a value from an encrypted field in a conversation, a summary or a log, where that copy may not be encrypted at all. Test the agent in the full sandbox with the encryption on, and check where its outputs are stored. Chapter 20 covers agents.
Explore
Section titled “Explore”- Shield Platform Encryption Best Practices (opens in a new tab), Salesforce Help (checked 2026-11-26)
- Tradeoffs and Limitations of Shield Platform Encryption (opens in a new tab), Salesforce Help (checked 2026-11-26)
- General Shield Platform Encryption Considerations (opens in a new tab), Salesforce Help (checked 2026-11-26)
- How Shield Platform Encryption Works in a Sandbox (opens in a new tab), Salesforce Help (checked 2026-11-26)
- Turn On Encryption for Standard and Custom Fields (opens in a new tab), Salesforce Help (checked 2026-11-26)
- Sync Data with Self-Service Background Encryption (opens in a new tab), Salesforce Help (checked 2026-11-26)
