How to: Create a Table In Microsoft Templates (DOCX, PPTX)
Build a DOCX related list table by placing a Word table between tableformat tags and mapping each column to a SOQL field.
What DOCX needs
Basic pattern
[{{!<lineitemsSOQL>
<tableformat>]
| Product | Quantity | Total |
| sample | sample | sample |
| sample | sample | sample |
[</tableformat>
<soql>
SELECT Product2.Name, Quantity, TotalPrice
FROM OpportunityLineItem
WHERE OpportunityId = '{{!Opportunity.Id}}'
ORDER BY SortOrder
</soql>
<column>Product2.Name</column>
<column>Quantity</column>
<column format-number="#,##0.00" prefix="$">TotalPrice</column>
</lineitemsSOQL>}}]Build it step by step
Example for Opportunity Products
Common fixes
Keep going
Last updated
Was this helpful?

