Named Queries In Microsoft Templates (DOCX, PPTX, XLSX)
Use the correct square-bracket syntax for named query blocks and merge fields in DOCX and PPTX templates.
Core rule
Basic pattern
[{{!<lineitemsSOQL>
<queryname>TopLineItem</queryname>
<soql>
SELECT Name, TotalPrice
FROM OpportunityLineItem
WHERE OpportunityId = '{{!Opportunity.Id}}'
ORDER BY TotalPrice DESC
LIMIT 1
</soql>
</lineitemsSOQL>}}]
[{{!TopLineItem.Name}}]
[{{!TopLineItem.TotalPrice #,###.##}}]Use filter and offset
Common fixes
Keep going
Last updated
Was this helpful?

