Using the class "Document"
The dvelop_docs_dev.Document class includes all the metadata of a DMS document and lets you work with documents in Apex in a structured and simple way.
Signature
global with sharing class Document
Contents
Constructors
You can create a Document instance with the following constructors:
Document()
This method creates a simple Document instance.
Signature
global Document()
Properties
The class Document has the following properties:
id: The unique ID of the DMS document.
Data type: String
viewingUrl: An absolute URL that can be used to view the document in d.velop documents.
Data type: String
title: The title (filecaption) of the document.
Data type: String
downloadUrl: An absolute URL that can be used to download the document.
Data type: String
categories: A list of the keys for the categories assigned to the DMS category of the document.
Data type: List<String>
defaultCategory: The first category from the categories list.
Data type: String
attributes: The list of document attributes.
Data type: List<dvelop_docs_dev.DocumentAttribute>
Methods
The Document class provides the following methods:
getDocumentAttributes()
This method outputs the document attributes in generic format.
Signature
global Map<String, Object> getDocumentAttributes()
Returned entry
The document attributes in a generic dictionary. The values may be an individual text value (String) or a list of text values (List<string>).