With recent update of D365 Finance & Operations (10.0.12), Microsoft has made some extension points available for file scanning in D365. You can use those extensions points to call file scanning service of your choice.
The Docu class exposes the following two delegates:
Docu.delegateScanDocument()
Docu.delegateScanDeletedDocument()
You can implement the handlers for the above delegates for file scanning during download process in D365. You can view the boilerplate code for the two handlers at the below docs site:
For upload, similar delagates are available which can be viewed at the following docs site:
Enjoy!
*This post is locked for comments