Generate Without a Record Page
Print one PDF from many records with the Generate ZeroExport List PDF Flow action, and generate from the ZeroExport Documents page component on App, Home and Tab pages.
Most documents are generated from a record. Two features added in 1.13.0 generate without one: a Flow action that prints all the records of a Multiple-scope template as one PDF, and a page component that lists templates on App, Home and Tab pages.
One PDF from many records, from Flow
A template with Record Scope = Multiple prints a list of records, for example every Account grouped by industry. The Generate ZeroExport PDF action is for one record. Use Generate ZeroExport List PDF to print all of a Multiple-scope template's records in one PDF.
Add an Action element in Flow and search for Generate ZeroExport List PDF.
| Input | Required | Description |
|---|---|---|
templateId | Yes | The Template__c record to render |
| Output | Description |
|---|---|
status | Success, Queued or Failed |
message | A readable description of the result |
fileLink | Lightning URL of the generated file. Set only when status is Success |
jobId | Queueable job ID. Set only when status is Queued |
- The records come from the primary data source's own WHERE, ORDER BY and LIMIT, with each record's child lists. The action takes no record Id.
- The template is merged as the builder's list preview merges it, so grouped tables, merged cells and closing rows print as they do there.
- The file is saved for the running user and linked to no record. Open it from
fileLink, or find it in the user's Files. - The action fails, with a message, for a Single-scope template, a template with no active version, and a primary data source that returns no records, so a blank document is never saved.
- A run too close to the transaction's limits is queued, like Generate ZeroExport PDF, and reports through
ZeroExportProgressEvent__e. - A flow that runs the action for several inputs reads the templates once for the batch and generates each template once. Inputs that name the same template share one file and one
fileLink. - MIN RECORDS is not checked, because the action has no single record.
The ZeroExport Documents component
The ZeroExport Documents component for App, Home and Tab pages generates documents without a record page. It lists templates for any object:
- A single-record template asks for a record.
- A Multiple-scope template fetches its own list.
It offers Preview and Download.
Preview a record's override
When the template chosen in ZeroExport Preview has an override for the record, a Render from choice sets what Preview, Download and Generate & Save use:
- Record override (the default)
- Base template
The override's sections replace the template's. Brand, page setup, header, footer, conditions and data sources stay the template's. Flow generation still renders the base template.