You are here:
Microsoft Word and Microsoft PowerPoint Document Templates
You can create Microsoft Word or Microsoft PowerPoint documents that contain formatted text, including tables, paragraphs, columns, and images.
Prior to Salesforce Industries Communications, Media, and Energy Winter '18, Minor release, Version 101.2.900.151, when a document template was created using the Template Designer, the template was stored in a Salesforce table in HTML format. Because they are defined using the cloud-based Document Template Designer and stored natively as HTML, these templates are Vlocity Web Templates.
Beginning with Salesforce Industries Communications, Media, and Energy Winter '18, Minor release, Version 101.2.900.151, Vlocity CLM supports Microsoft Word (.docx) and Microsoft PowerPoint (.pptx) templates. You can create a .docx or .pptx file and drop it into a named Document Template object.
Insert tokens into the documents, to include dynamic data merged from JSON . Tokens in these templates use the format {{token_name}}. At this time, all Microsoft Word and Microsoft PowerPoint templates are JSON-based templates. For more information about JSON-based templates, see Understanding JSON-Based Mapping Contract Templates. The tokens in the Microsoft Word or Microsoft PowerPoint templates are automatically extracted into the mapping Omnistudio Data Mapper that is attached to the Document Template objects. Then, these tokens can be mapped to an input JSON. For more information about tokens in Microsoft Word and Microsoft PowerPoint documents, see Tokens Into Microsoft Word or Microsoft PowerPoint Documents. Tokens can display variable data, repeat items from an input data array, or check conditional logic.
Because tokens in Microsoft Word and Microsoft PowerPoint document templates are always mapped using JSON-based data mapping, the generation process is similar to that of JSON-based Vlocity Web Templates. The extract and transform Data Mappers attached to the Document Template object can extract and transform data before it is merged with the template at contract generation.
After you complete the template, drag it to a Document Template object. The Document Template object is a container to hold the .docx or .pptx file. For more information, see Creating a Microsoft Word or Microsoft PowerPoint Template.
Use a Microsoft Word template to generate a Microsoft Word output document that can be converted to PDF. Use a Microsoft PowerPoint template to generate a Microsoft PowerPoint output document that can be converted to PDF.
You can generate Vlocity Web Template documents and Microsoft Word documents in Vlocity CLM. However, you cannot generate Microsoft PowerPoint documents in Vlocity CLM.
You can also generate documents from an Omniscript . Vlocity provides a generic Omniscript to generate documents. For more information, see Test a Microsoft Word or Microsoft PowerPoint Template Using Data.
When you upload a .docx or .pptx file, it is stored in Salesforce content. It is not an attachment. Currently, exporting a Vlocity Document Template of type .docx or .pptx as part of a DataPack is not supported. Existing export functionality does not support pulling files from Salesforce content. Exporting these document templates will be supported in a future release. At this time, to move a Vlocity Document Template of type .docx or .pptx from one org to another, you must create a Vlocity Document Template in the target org and attach the .docx or .pptx file to it. You can export the Data Mappers attached to the document template, and then import and attach them in the target org.
All typical document template features, such as versioning, cloning, and activating, are supported in Microsoft Word and Microsoft PowerPoint templates.
- Creating a Microsoft Word or Microsoft PowerPoint Template
Using Microsoft Word or Microsoft PowerPoint, create documents that contain formatted text, including tables of contents, tables, paragraphs, columns, and images. You can also include tokens, or variables, to merge data from a JSON source when you generate the document. - Embedding Fonts in a Microsoft Word or PowerPoint Document
When you generate PDF documents using the Vlocity Client-Converter as your setting, you must embed fonts in Microsoft Word or PowerPoint. When you embed fonts, the document saves those fonts and the user will see those fonts regardless of whether the fonts are installed on their own computer. - Tokens in Microsoft Word or Microsoft PowerPoint Documents
You can insert multiple types of tokens in a Microsoft Word or Microsoft PowerPoint document template, such as variables, repeating content, condition evaluation, dynamic images, hyperlinks, and rich text. During document generation, tokens are replaced with actual data in the generated document. - Inserting DocuSign Signature Tags
In Vlocity Web Templates, you can create signature sections. In Vlocity Document Templates based on Microsoft Word or Microsoft PowerPoint documents, you must insert the DocuSign signature tags directly into the Microsoft Word (.docx) or Microsoft PowerPoint (.pptx) file. - Test a Microsoft Word or Microsoft PowerPoint Template by Using Data
Test Template feature lets you quickly preview Microsoft Word .docx and Microsoft PowerPoint .pptx document templates by using actual data. - Reconcile Documents for Microsoft Word DOCX Templates
To track changes in documents for Microsoft Word DOCX templates, you must configure custom settings, contract type settings, and set up context sections or clause sections. - Create a Context Section
Use context sections to mark and track changes to text areas in a Microsoft Word document. By setting up these context sections, you can see when reviewers make changes in later versions of the document. - Context Section Considerations
These guidelines for reconciling documents based on Microsoft Word DOCX templates can help you avoid errors when you create templates with context sections. - Rules For Using a Custom Class in a Microsoft Word or Microsoft PowerPoint Template
You must use a particular structure and content when you create a custom Apex class to use in a Microsoft Word or Microsoft PowerPoint document template. - Create a Basic Omnistudio Data Mapper Extract and Data Mapper Transform in CLM
You can create a basic Omnistudio Data Mapper Extract and Data Mapper Transform to pull the information from a contract object into the Microsoft Document template. - Client-Side Document Generation Supports Dynamic Hyperlinks, Rich Texts, Images
Use hyperlinks, rich text, and image tokens in document templates to insert dynamic URLs, rich texts and images in the generated DOCX and PDF files.
