Please also see the Long term document handling section
Sending the envelope completed documents to a Document Management System/Long Term Archiving solution can be done by implementing a ICompletedEnvelopeProvider.
Implementation Notes :
if an error occurs while sending the document to the DMS/ArchiveSystem, then your provider should throw an exception with a descriptive error message.
the envelope sender can see these errors from the envelope details page.