Excel (XLSX)
Choose XLSX when you need spreadsheet-first output, Excel-native formatting, and bracket-based Microsoft template syntax.
Use this page when you want to design a workbook in Microsoft Excel and generate a true .xlsx file from Salesforce data.
An XLSX template is built in Excel, then uploaded to S-Docs for generation.
Use it when spreadsheet structure matters more than HTML layout, Word editing, or slide design.
When XLSX is the right fit
Use XLSX templates when you need:
Microsoft Excel workbook design tools
a generated
.xlsxfilemerge fields inside a workbook
conditional sections in worksheet content
named queries in Microsoft template syntax
generation through S-Docs LWCs or the SDK with the newer upload flow
XLSX is a strong fit for data exports, pricing workbooks, operational reports, and spreadsheet-first deliverables.
How XLSX templates work
The workbook design lives in Excel.
The dynamic data comes from S-Docs syntax placed inside the .xlsx file.
XLSX templates use bracketed Microsoft template syntax around S-Docs blocks and merge fields.
Conditional logic
Use conditional logic when worksheet content should appear only for certain records.
XLSX conditional logic uses the same RENDER model as other Microsoft templates.
Wrap both the opening and closing tags in square brackets.
Keep merge fields inside rendered content in square brackets too.
Use the same operators you use in standard S-Docs conditional logic.
Nested render blocks work too.
Common fixes:
If the block prints as text, add square brackets around both
RENDERtags.If a field inside the block stays blank, wrap that merge field in square brackets too.
If the condition never matches, verify the field path and comparison value.
Supported features
XLSX templates support these common S-Docs capabilities:
merge fields
conditional logic
named queries
Excel-native formatting and formulas
Important constraints
Keep these XLSX rules in mind:
Live Edit is not supported.
Template headers and footers are not supported.
Component templates are not supported.
S-Sign is not supported.
Related lists are not supported.
Leading zeros and strict number formats may need explicit Excel formatting.
Next reads by goal
Need the build steps? Read Build and Upload an XLSX Template.
Need setup details? Read XLSX Rendering Considerations.
Need merge field syntax? Read Merge Fields With Microsoft Templates (DOCX, PPTX, XLSX).
Need conditional syntax? Read Quick Setup: Conditional Logic With Microsoft Templates (DOCX, PPTX, XLSX).
Need named query patterns? Read How To: Advanced Data Retrieval with Named Queries.
Need formatting help for leading zeros? Read Preserve leading zeros in Excel output.
Last updated
Was this helpful?

