Synchronize heading titles and page numbers automatically within generated DOCX and PDF
files. Use a dynamic Table of Contents (ToC) to maintain the navigation structure in documents
where pagination fluctuates based on data injection, conditional clauses, or variable
text.
Required Editions
REQUIRED EDITIONS
Available in: Lightning Experience
Available in: Enterprise, Unlimited, Professional, and
Developer Editions
USER PERMISSIONS NEEDED
To create a template:
DocGen Designer permission set
AND
Microsoft 365 Word User permission
set
OR
Microsoft 365 Word Designer permission set
Keep these considerations in mind while generating ToC’s for your specific document use
case.
Dynamic ToC updates support documents up to 25 MB. Larger files can cause performance
degradation or support limitations.
Server-side watermarks used with a dynamic ToC include only simple text. They
don't support rich text, images, or hyperlinks.
ToC behavior depends on the generation process type and the final format of the document:
Generate (DOCX)—refreshes on download. Users should accept the Microsoft Word update
prompt to see changes.
Generate & convert (DOCX & PDF)—fully automated. Page numbers update immediately
in both formats.
Convert or Merge—Not supported for dynamic ToC updates.
Tip To ensure optimal performance when generating a PDF with a dynamic table of
contents, set the keep intermediate parameter in the Document Generation Process (DGP) record to
false. Setting this to false ensures that intermediate DOCX/PPTX files are deleted, storing only
the output PDF file, resulting in faster document generation.
To update a table of contents, the isTocUpdateRequired flag should to true on the Document
Generation Process (DGP) record. Use one of these options to set the flag.
Contract Type configuration for Salesforce Contracts: For Contract lifecycle Management
(CLM) implementations, use the Contract Type Config Settings to set the Is ToC Update Required
configuration to true. This setting globally manages the inclusion of a dynamic ToC
for specific contract types.
Omniscript for Salesforce Document Generation: Map an element value to the ToC update flag
within the SetGenerationServiceInputParams parameter to see the updated ToC
during the generation lifecycle.
Apex or Flow for Salesforce Document Generation: Turn on the ToC at the code level for
custom or automated processes. When you use Apex to create DGP records, explicitly set the ToC
update required boolean field to true. This helps the server to recognize and process ToC
requirements for non-interactive or batch generation.
Эта статья решила вашу проблему?
Оставьте свой отзыв, чтобы мы могли стать лучше!
Загрузка
Salesforce Help | Article
Cookie Consent Manager
Cookie Consent Manager
General Information
Required Cookies
Functional Cookies
Advertising Cookies
General Information
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.