Notify Salesforce admins about infected files with Flows

attachmentAV for Salesforce comes with a bunch of notification options when it comes to communicating the results of real-time and full scans inside and outside of Salesforce. But sometimes, you need more control. Luckily, attachmentAV for Salesforce publishes the attachmentav__AttachmentAVScanResult__e platform event for each scan result. In the following, I demonstrate how you can use Salesforce Flows to send an email to a Salesforce admin if an infected file is found.

Flow: Send an email to a Salesforce admin if an infected file is found

The following video shows how to create the flow:

Email body template

I used this email body template:

Hi,



in real-time scan {!Get_real_time_scan_result.Name}, we found an {!Get_real_time_scan_result.attachmentav__Status__c} file ({!Get_real_time_scan_result.attachmentav__Finding__c}):

{!Get_real_time_scan_result.attachmentav__FileTitle__c}.{!Get_real_time_scan_result.attachmentav__FileExtension__c}



Thanks

Published on June 30, 2025 | Written by Michael

Stay up-to-date

Monthly digest of security updates, new capabilities, and best practices.