web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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:
I have the same question (0)
  • Suggested answer
    Adrian Begovich Profile Picture
    1,027 Moderator on at

    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.

  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    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.

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

News and Announcements

Season of Giving Solutions is Here!

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 > Customer Service

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans