Fields
Fields
| Parameter | Description | |
|---|---|---|
templateIdString |
required | Id of the template to render. |
variablesMap<String, String> |
required | Merge variables passed to the template as key/value pairs. |
documentTypeString |
required | Output document type for the generated file. |
destination |
required | The Resource that specifies where the generated document is stored. |
params |
required | Additional generation parameters. See Types.DocGenParams. |
cloudFilesVariablesList<CloudFilesVariable> |
optional | Optional structured CloudFiles variables. Only populated via the overload that accepts them; not part of the constructor documented below. |
Constructors
This custom type has a constructor that takes in the parameters in the order shown. Note the argument order differs from the field declaration order in the repo: the constructor takes documentType before destination, whereas the class declares destination before documentType.
global DocGenRequestInput( String templateId, Map<String, String> variables, String documentType, Resource destination, DocGenParams params )
Example
// For a more detailed example, see the example section in the // Generate Document (Sync) article. Types.DocGenRequestInput input = new Types.DocGenRequestInput( templateId, variables, documentType, destination, params );