How to: Format and Summarize a Related List
Apply column attributes, conditional output, and aggregate SOQL to make related lists easier to read.
Format each row
<table class="table1">
<thead>
<tr>
<th>Opportunity</th>
<th>Stage</th>
<th>Close Date</th>
<th>Amount</th>
<th>Description</th>
</tr>
</thead>
<tbody><!--{{!
<lineitemsSOQL>
<class>table1</class>
<soql>
SELECT Name, StageName, CloseDate, Amount, Description
FROM Opportunity
WHERE AccountId = '{{!Account.Id}}'
ORDER BY CloseDate DESC
LIMIT 10
</soql>
<column>Name</column>
<column render="RECORD.StageName == 'Closed Won',Won,RECORD.StageName == 'Closed Lost',Lost,RECORD.StageName"></column>
<column format-date="MMM d, yyyy">CloseDate</column>
<column prefix="$" format-number="#,###.00">Amount</column>
<column nullprefix="No description">Description</column>
</lineitemsSOQL>
}}-->
</tbody>
</table>Build a summary table
Best attributes to use first
Rules to remember
Keep going
PreviousHow to: Filter and Sort a Related ListNextHow to: Create a Table In Microsoft Templates (DOCX, PPTX)
Last updated
Was this helpful?

