Difference between Attachment and ContentVersion (Salesforce Files)
  • 13 Jul 2022
  • 1 Minute to read
  • Dark
    Light

Difference between Attachment and ContentVersion (Salesforce Files)

  • Dark
    Light

Article Summary

What is the difference between Attachment and ContentVersion (Salesforce Files)?

There are two different attachment-like objects in Salesforce.

  1. Attachment: This is the older object that many newer orgs don't use anymore, but Blackthorn supports it for customers on older orgs.
  2. Files (ContentDocument, ContentVersion): These are the newer objects known collectively as "Salesforce Files". Depending on how the attachments are uploaded, they could end up being saved as either object. If we are dealing with Salesforce Files, then when Blackthorn Compliance detects a credit card number in the ContentVersion record, it will delete both the parent ContentDocument record and all of the child ContentVersion records.

Compliance supports both types of records, but you will need to determine which object you will use for your org in order to configure the SecureAttachment extension package correctly.

Please remember that SecureAttachment does not support masking within Attachment or ContentVersion records. At this time you can Report or Delete these records automatically if Personally Identifiable Information (PII) is detected.