Uploading Salesforce files to the DMS
Managing and processing DMS documents
Testing d.velop Apex code
The class dvelop_docs_dev.DocumentDownloadResult combines the output parameters of a successful download of a DMS document.
global with sharing class DocumentDownloadResult
The class DocumentDownloadResult provides the following methods:
???
This method returns the name of the original file of the DMS document that was downloaded.
global String getFilename()
The name of the original file.
This method returns the contents of the original file of the DMS document that was downloaded.
global Blob getBody()
The binary contents of the original file.
The following section shows you some application scenarios depicting the use of the class.
dvelop_docs_dev.DocumentDownloadResult downloadResult = documentManager.downloadDocument('XH00014562'); String filename = downloadResult.getFilename(); Blob filebody = downloadResult.getBody();