Loading
Salesforce now sends email only from verified domains. Read More
Help Agent Performance DegradationRead More
Omnistudio Document Generation
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Omnistudio Document Generation Document Templates

          Omnistudio Document Generation Document Templates

          A document template defines the structure, content, and format of generated documents. You do most of your document authoring when you create templates. You can create Microsoft Word or Microsoft PowerPoint documents that contain formatted text, including tables, paragraphs, columns, and images. These documents can also be converted to PDF format.

          You can associate document templates with input JSON data, which can come from any source. The JSON input can come from a Omnistudio Data Mapper extraction step within the Omniscript, or by collecting data from the user in the Omniscript. A remote call can pass the JSON when generating the document. Variables, also known as tokens, reference the input JSON data in the text. The data is merged into the document during the generation process.

          Attention When integrating macros into your Microsoft Word and Microsoft 365 document templates, exercise caution and conduct thorough testing to mitigate potential security risks. Salesforce doesn't assume responsibility for any issues that may arise due to the use of macros.

          Documents can be generated as part of an Omniscript-based guided interaction flow. Two sample Omniscripts are provided, and you can customize them. You can then convert the document to PDF or Microsoft Word to access within the Omniscript. You can also attach the appropriate object record or even email it to someone. You can also create your own Omniscripts, Integration Procedures, or Apex classes to generate documents.

          Each document template record must have a unique name. You can create multiple versions of a document template, but only one version can be active at one time. You can also clone, activate, and deactivate templates.

          Document templates offer these advantages:

          • Document generation isn't tied to any particular object. You can generate documents using data extracted from any object, or data that isn’t stored in objects, such as data from an Omniscript.

          • You can generate documents that use advanced formatting. For example, you can create one section for order line items that are devices and another section for order line items that are plans. You can display product attributes in documents, even if those attributes aren’t storied in the order line item fields.

          • You can display repeating content in a generated document. You aren’t limited to line items of an object such as a Contract, Order, or Quote. For repeating items, you can display or hide individual line items based on conditions. For example, you can create a grid that displays only network products and their prices, or only active contracts associated with an account. To display repeating content, use a repeating content document template section.

          • You can use Data Mapper formulas to specify criteria for displaying information. You can use any token from the template to build the formula, or you can define new tokens within the formula. At runtime, these formulas are evaluated based on data passed to the tokens. Then, the template section may or may not be displayed based on the formula.

          • You can use the item section for any type of item list, not only for line items. Display any type of grid, or table, as long as the input is available in a JSON array. For example, you can display price lists or rate tables.

          • You can filter individual line items or repeatable content items to display in a document. For example, from a set of quote line items, you can display devices in one table and services in another. Use a formula to filter the type of line items to show.

          To get started building your document generation templates, follow these instructions:

           
          Loading
          Salesforce Help | Article