top of page

File Wipe - Retroactive Batch

The File Wipe functionality can be executed in batch mode.  When scheduled, the batch retroactively removes files that match the File Wipe library.  There are two separate process: one to remove file and another to remove attachments. 

File Wipe - Retroactive Batch For Files

The RetroBatch rule defines the logic for the Retro Batch.  Modify the CMDT as needed.

image.png

Schedule the File Wipe Retro Batch to remove any existing files that exist in the File Wipe library

schedule.png

The batch can also be executed with the following code:

​

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

ID batchprocessid = Database.executeBatch(batchApex);

File Wipe - Retroactive Batch For Attachment

The RetroBatchAttachments rule defines the logic for the Retro Batch.  Modify the CMDT as needed.

image.png

Schedule the File Wipe Retro Attachments Batch to remove any existing attachments that exist in the File Wipe library

image.png

The batch can also be executed with the following code:

​

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

ID batchprocessid = Database.executeBatch(batchApex);

bottom of page