public interface DocumentVersion
DocumentVersion
s retrieved from DocumentActionContext
contain all document fields.
Otherwise, DocumentVersion
s only contain ID, major version, and minor version.
Modifier and Type | Method and Description |
---|---|
DocumentVersion |
fromTemplate(String templateName)
Creates a document from the given template.
|
<T> T |
getValue(String fieldName,
ValueType<T> returnType)
Retrieves the value of the specified document field.
|
DocumentVersion |
setSourceFile(FileReference fileReference)
Sets the source file for the new document version when creating a
new document or a new version of an existing document.
|
void |
setValue(String fieldName,
Object value)
Sets the value for the specified document field.
|
DocumentVersion |
suppressRendition()
Disables generation of a viewable rendition from the source file for the
new document or document version.
|
<T> T getValue(String fieldName, ValueType<T> returnType)
T
- type of data requestedfieldName
- name of the field to get value fromreturnType
- type of data requestedvoid setValue(String fieldName, Object value)
fieldName
- name of the field to set the value ofvalue
- new value to set for the field. To remove an existing value, set to null.DocumentVersion setSourceFile(FileReference fileReference)
fileReference
- location of the source file to useDocumentVersion
DocumentVersion suppressRendition()
DocumentVersion
DocumentVersion fromTemplate(String templateName)
templateName
- public Name of the template used to create a documentDocumentVersion
from templateCopyright © Veeva Systems 2017–2021. All rights reserved.