The Docgen Service action creates content in the application by generating a document from a template. The generated output can be saved as a new document or used to overwrite existing content.
The payload for the action is:
| Property | Required | Description |
|---|---|---|
| metadata | Optional | Metadata values used by the template during document generation. |
| outputFileName | Optional | Name of the generated output file. |
| outputFormat | Optional | Format of the generated document. Supported values are PDF and DOCX. |
| targetFile | Optional | Existing content to overwrite with the generated output. If
multiple values are provided, only the first is used. For example,
"uri":
"hxpr:/1234567890"
|
| targetFileMetadata | Optional | Metadata assigned to the generated content. |
| targetFileType | Optional | Content type assigned to the generated file. |
| targetFolder | Optional | Parent folder where the generated content is saved. If multiple values are provided, only the first is used. |
| targetFolderId | Optional | Identifier of the folder where the generated document is saved. |
| targetFolderPath | Optional | Relative path of the destination folder. For example,
/User
Homes/hruser/invoices
|
| template | Required | Template file used to generate the content. If multiple template
values are provided, only the first template is used. For example,
"uri":
"hxpr:/1234567890"
|
| underscoreMetadata | Optional | Determines how metadata namespaces are formatted. When set to true, namespace prefixes are separated from property names with an underscore (_) instead of a colon (:). |