top of page

File Wipe - One-time Attachments Batch

Salesforce Attachments do not include the metadata required to evaluate hash sequences. Standard File Wipe functionality will handle this deficiency moving forward, but this one-time retroactive batch will need to be run to populate hash data into the instance for existing attachments. If your instance is not leveraging attachments, this step is unnecessary.

The Populate Hash batch is defined by the Populate Hash Batch CMDT. Please note the Where Condition is defaulted to specific review attachments with a specific size and type. Please review these settings as it will impact the ability of the File Wipe Audit.

image.png

The Populate Hash Batch only needs to run once in the instance.  The following code will execute the batch:

​

 emailToFlow.fileWipePopulateAttachmentHashBatch batchApex = new emailToFlow.fileWipePopulateAttachmentHashBatch();

 ID batchprocessid = Database.executeBatch(batchApex);

​

​

bottom of page