Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Customer Service forum

anti-virus scanning attachments

(0) ShareShare
ReportReport
Posted on by

I've seen several rather old threads related to the subject, anti-virus scanning attachments, most say you need to come up with a DIY solution to pre-scan attachments before they're loaded into crm.  That's kind of a problem when you have direct mailbox links set up.  Is there any updates on the capabilities for scanning attachments?

Categories:
  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at
    RE: anti-virus scanning attachments

    Hi,

    There is no supported/ standard way to achieve this in CRM. You can go for the above mentioned workaround if required.

    Hope this helps.

  • Suggested answer
    Adrian Begovich Profile Picture
    1,023 Super User 2025 Season 1 on at
    RE: anti-virus scanning attachments

    Hi randalls2ndhalf,

    This is a potential solution to your problem.

    Since files are uploaded as attachments on notes or emails, you could create a Plug-in that scans the file before the note is created, and when a file is attached to an email and the documentbody changes.

    If you decide to take this approach, you will need to include an open-source virus scanner like nClam in your Plug-in. nClam allows you to scan files for viruses with a ClamAV server using a simple API and return a result telling you if the file is infected or not. In your Plug-in, convert the document body to a byte[] and send it to the ClamAV server for processing. If the file is flagged as having a virus, throw a InvalidPluginExecutionException in the Plug-in. This will prevent the file from saving and rollback the suspect transaction.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,110 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans