Loading

Generate only PDF Document using Server-Side Document Generation

Veröffentlichungsdatum: Aug 1, 2025
Beschreibung

In Salesforce Industries (Vlocity) Document Generation, when using the Apex class approach for server-side document generation, the default behavior generates both a Word document and a PDF. However, certain business use cases may require generating only the PDF output without saving or generating the intermediate Word document. This article outlines how to configure the generation request to produce only a PDF document by using the appropriate parameter.

Lösung

Refer the code from this document.

To generate only the PDF document using the Salesforce server-side document generation API and exclude the intermediate Word file:

  1. Use the KeepIntermediate parameter in the requestText JSON body.

  2. Set "KeepIntermediate": false

Nummer des Knowledge-Artikels

005131021

 
Laden
Salesforce Help | Article