Salesforce free-text fields are the part of your org that field-level masking rules were never built to read. A case comment, a Chatter post, a long description box: these are open containers where agents and reps type whatever they need to, including names, phone numbers, account details, and sometimes full identity documents pasted in for reference. Most masking tools scan schema. They mask the Phone field and the Email field and call it done. They do not read the sentence a support rep wrote at 4pm that says "spoke with John Alvarez, DOB 03/14/1986, confirmed last four of SSN as 4471."

That sentence now lives in a sandbox. Every developer, every QA contractor, every AppExchange partner with sandbox access can read it. No masking job touched it because no masking job was looking at it.

Why free-text fields break standard masking logic

Field-level masking works because it knows where to look. A policy says: this object, this field, this data type, replace it with a fake value of the same shape. Phone becomes a fake phone. Email becomes a fake email. The logic depends on the field telling you what kind of data it holds.

Free-text fields refuse to tell you anything. A Long Text Area, a Rich Text field, a Description field, a Case Comment body: the schema says "text," and that is the entire specification. The actual content could be a product SKU, a shipping address, a customer's medical history, or a paragraph complaining about the weather. The field type gives you no signal.

This is why most masking vendors quietly skip these fields. Masking a structured field is a solved problem. Masking unstructured text requires reading the content, deciding what counts as PII inside a sentence, and rewriting it without breaking the sentence's usefulness for testing. That is a much harder engineering problem, and a lot of tools duck it by only masking what is easy.

Where the PII actually hides

Case Comments are the worst offender, because support interactions are where customers volunteer the most sensitive information. An agent troubleshooting a billing issue will paste in a card's last four digits, a date of birth for identity verification, or a home address for a replacement shipment. All of it sits in CaseComment.CommentBody, untouched by field masking.

Chatter posts and feed items run a close second. Sales reps post deal updates that include client contact details. Internal teams tag colleagues in posts that reference a customer by full name and account number. None of it is a "PII field" in the traditional sense, but all of it is PII in practice.

Beyond those two, watch these spots:

None of these show up on a standard data classification report built from field metadata. You have to go looking for them, and most teams do not, because nobody flags unstructured fields as a masking responsibility until an auditor asks about them directly.

Why pattern matching alone is not enough

Some masking approaches try to patch this gap with regex. Scan every text field for anything that looks like a phone number, an email address, or a 9-digit number that might be an SSN. This catches some things. It misses more than it catches.

A name has no pattern. "John Alvarez" looks exactly like any other two capitalized words in a sentence to a regex engine. An address written as "14 Birchwood Lane, Unit 3" does not match a phone pattern or an email pattern, so it sails through untouched. Dates of birth written as "March 14th" instead of "03/14/1986" dodge a numeric date regex entirely.

Regex also produces false positives that damage test data quality. A part number that happens to be 9 digits gets flagged as an SSN and scrubbed, breaking whatever test scenario depended on that part number being real. Masking free text well requires context, not just character patterns, and that means either a maintained entity list, a trained recognition model, or both working together.

What an actual fix looks like

MaskEzee treats free-text fields as a distinct masking category, not an afterthought bolted onto field-level rules. The approach combines named-entity recognition with your org's own data, so it can catch a customer name because that name exists in a related Contact record, not just because it matches a generic pattern.

The masking engine scans CommentBody, Description, and custom long-text fields for recognizable entities: names, addresses, phone formats, email formats, national ID patterns, and dates that fall in a plausible birth-date range. Flagged terms get replaced with equivalent fake values that preserve sentence structure, so a QA tester still sees a coherent comment like "spoke with Daniel Cho, confirmed account details," just with fabricated identity details swapped in.

This runs as part of the same pre-refresh masking job that handles your structured fields, on the same schedule, against the same objects. No separate tool, no second vendor contract, no extra step for an admin to remember to run. If the sandbox refresh triggers masking, free text gets swept along with everything else.

Building the policy: audit before you automate

Before turning on free-text masking, run an audit. Pull a sample of CaseComment, Description, and custom long-text field values from production, fifty to a hundred records per object, and read them. You are looking for patterns specific to your business: do support agents paste in payment details, do sales reps log personal phone numbers, does your Knowledge team reference real customers by name in draft articles.

This audit tells you which fields need aggressive masking and which need none at all. A Description field on a Product2 record is unlikely to ever contain PII. A Description field on a Lead record almost certainly will, because reps use it to jot down everything they learn about a prospect during a cold call.

Table of common objects worth auditing:

Object / FieldTypical PII RiskPriority
CaseComment.CommentBodyHigh — identity verification, payment details, addressesCritical
EmailMessage body (Email-to-Case)High — full original customer email contentCritical
Lead.DescriptionMedium — call notes, personal phone numbersHigh
Opportunity.DescriptionMedium — contact names, deal-specific personal detailsMedium
Chatter FeedItem.BodyMedium — informal mentions of customer names/detailsMedium
Task/Event.DescriptionLow to medium — depends on team logging habitsMedium

Rank each field by risk and feed that ranking into your masking configuration. Not every text field needs the same level of scrutiny, and treating them all identically wastes processing time on fields that never contained sensitive data in the first place.

Testing that the masking actually worked

Verification for free-text masking is different from verification for field-level masking. You cannot just check that a column is empty or populated with a fake value, because the field still needs to contain readable text. You have to check that the readable text no longer contains real identifiers.

Pull the same sample set you used for the original audit, refresh the sandbox, and re-read those records. If a name, address, or ID number that appeared in production still appears verbatim in the sandbox copy, the masking rule missed it and needs tuning. This is manual work the first few times you set it up, but it is the only reliable way to confirm entity-based masking is catching what it is supposed to catch.

I would treat this verification step as non-negotiable for any org handling healthcare, financial services, or EU customer data. Regulators do not care that your Phone field was masked correctly if the same phone number is sitting in plain text inside a case comment three rows down. GDPR and similar frameworks look at where personal data exists, not where your masking tool happened to look.

Frequently Asked Questions

Do standard Salesforce sandbox masking tools cover case comments and Chatter posts?

Most do not by default, because they are built to mask structured fields like Phone, Email, and SSN__c based on field metadata. Case comments, Chatter posts, and long-text description fields hold unstructured content that requires entity recognition rather than simple field-type matching. Unless a masking tool explicitly supports free-text scanning, this data typically passes through a refresh unmasked.

Can regex alone catch PII hidden in free-text Salesforce fields?

Regex catches structured patterns like phone numbers or email addresses reasonably well, but it misses names, addresses, and dates written in natural language. It also produces false positives, flagging part numbers or case IDs that happen to match a numeric pattern. Reliable free-text masking needs named-entity recognition combined with context from related records, not pattern matching on its own.

Which Salesforce objects are most likely to contain unmasked PII in free text?

CaseComment and Email-to-Case message bodies carry the highest risk because support interactions routinely involve identity verification and payment references. Lead and Opportunity description fields follow close behind, since sales reps log personal details from calls directly into open text boxes. Chatter feed posts and Task or Event descriptions carry moderate risk depending on team habits.

How does MaskEzee mask free-text fields without breaking test data readability?

MaskEzee identifies entities like names, addresses, and dates within a text block and replaces only those terms with fabricated equivalents, leaving the surrounding sentence structure intact. A comment that read as a coherent note before masking still reads coherently afterward, just with fictional identity details in place of real ones. This runs alongside standard field-level masking in the same pre-refresh job.

Why does GDPR compliance depend on masking free-text fields, not just structured ones?

GDPR applies to personal data wherever it exists in a system, regardless of which field type holds it. A regulator or auditor reviewing sandbox access will treat a name typed into a case comment the same as a name stored in a dedicated Contact field. Masking only structured fields leaves a documented gap that undermines a compliance claim even if every schema-defined PII field was handled correctly.