Fields

Fields
ParameterDescription
id
String
optionalId of the template. Pass it as the template Id when you generate a document.
name
String
optionalName of the template.
description
String
optionalDescription of the template.
objectType
String
optionalAPI name of the Salesforce object the template is built on.
kind
String
optionalThe template file type, pdf or docx.
createdAt
Datetime
optionalWhen the template was created.
createdBy
String
optionalWho created the template.
versionNumber
Integer
optionalVersion number of the template.
tags
List<String>
optionalTags on the template.
variables optionalThe runtime variables the template expects. Filled only when runtime variables are requested, which the Flow action can do and Apex currently cannot.

Constructors

global DocGenTemplate()
global DocGenTemplate(
  String id,
  String name,
  String description,
  String objectType,
  String kind,
  Datetime createdAt,
  String createdBy,
  Integer versionNumber
)