Named Query Working Examples
Use copy-paste named query examples to display aggregates, target specific rows, and combine filters with offsets.
Example 1: Display an aggregate value
<!--{{!
<lineitemsSOQL>
<queryname>LineItemStats</queryname>
<soql>
SELECT COUNT(Id) cid, SUM(TotalPrice) asum
FROM OpportunityLineItem
WHERE OpportunityId = '{{!Opportunity.Id}}'
</soql>
</lineitemsSOQL>
}}-->This opportunity has {{!LineItemStats.cid}} line items totaling ${{!LineItemStats.asum #,###.##}}.Example 2: Use offset to pull specific rows
Example 3: Use filter with offset
Keep going
Last updated
Was this helpful?

