Loading
 Experience Cloud – Feature Degradation on Lightning Web Runtime SitesRead More
The Trailblazer Community is now read-only Read More
Vlocity Contract Lifecycle Management
Microsoft Word and Microsoft PowerPoint Document Templates

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.

Note
Note

Don't enable content control while designing a new .docx template.

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.

Attention When integrating macros into your Microsoft Word 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.

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.

 
Loading
Salesforce Help | Article