Build dynamic S-Docs data tables with related lists and direct SOQL. Start here for task guides, Microsoft template patterns, and troubleshooting.
Use this section when you need repeating data tables in an S-Docs template.
In S-Docs, most tables are built with related lists powered by direct SOQL.
Use this section to choose the right path for row selection, output formatting, Microsoft template layout, and troubleshooting.
The query logic stays the same across formats. Microsoft templates use a different table wrapper around the same related list pattern.
If you need to return the right rows, start with filtering and sorting.
If the query already works, move to formatting, summaries, and cleaner output.
If you are building DOCX, or PPTX output, use the Microsoft template guide.
Extract child records into repeated rows.
Filter, sort, and limit records using direct SOQL.
Format dates, currency, and handle blank values in table output.
Create grouped summaries and calculate aggregate totals.
Render repeating tables in PDF and Microsoft templates.
Use Retrieve and Reuse Data when you need query results in a sentence, header, footer, or calculation instead of a table.
Was this helpful?

