HTML in WordUse the HTML template command to render Salesforce rich-text fields with formatting in Word documents.Sep 25, 2025Knowledge
InformationArticle BodyExamples Use Case 1: Display rich-text clauses Insert a contract clause stored as rich text. Example data: { Contract: { Clauses: [ { Value__c: "<p>Payment is due <strong>30 days</strong> after receipt.</p>" } ] }} Template Document: Output: Use Case 2: Formatted product descriptions Merge a product description field into a table cell. Example data: { Quote: { QuoteLines: [ { Name: "Product 1", Product_Description__c: "<ul><li>Feature 1</li><li>Feature 2</li></ul>" }, { Name: "Product 2", Product_Description__c: "<ul><li>Feature 3</li><li><strong>Feature 4</strong></li></ul>" } ] }} Template Document: Output: Notes Styling applied to the HTML command within the word document will be ignored since all styling should be applied in the given HTML. Next Steps About HTML TitleHTML in WordURL NameHTML-in-Word