For the complete documentation index, see llms.txt. This page is also available as Markdown.

Build and Upload a PPTX Template

Design slides in Microsoft PowerPoint, add bracketed S-Docs syntax, upload the .pptx file, and generate dynamic presentations from Salesforce data.

Use this page when you want slide-native design in Microsoft PowerPoint and a generated .pptx output from Salesforce data.

A PPTX template is built in PowerPoint, then uploaded to S-Docs for generation.

Use PPTX when slide design matters more than HTML layout or Word editing.

Pick PPTX when you need presentation-style output, PowerPoint design tools, and bracket-based S-Docs syntax.

Pick Microsoft Word (DOCX) when users need to keep editing the final document in Word.

Before you start

Make sure you have:

  • a new S-Docs template with format set to PPTX

  • the correct Related To Type for your base record

  • a .pptx file you can edit in Microsoft PowerPoint

  • the right upload path for your S-Docs version

PPTX upload behavior depends on whether Enable New Microsoft Template Upload is checked.

  • Checked — use the newer Microsoft template upload flow. This applies to Summer 2025 (v10.0) and later. These templates generate through S-Docs LWCs or the SDK.

  • Not checked — use the legacy upload flow in Template Editor. These templates generate through the legacy custom S-Docs button.

Build and upload a PPTX template

1

Create the template record

Create a new S-Docs template.

Set Template Format to PPTX.

2

Build the slide deck in Microsoft PowerPoint

Create the slide layout in PowerPoint exactly as you want it to appear.

Use normal PowerPoint tools for text, shapes, images, alignment, and tables.

3

Add S-Docs merge syntax

Insert merge fields, render blocks, and query output using bracketed Microsoft template syntax.

PPTX merge field wrapped in square brackets
Wrap PPTX merge fields in square brackets.
4

Add table-based repeating data when needed

If you need a related list, build it inside a PowerPoint table.

Your PowerPoint table needs:

  1. a header row

  2. an odd row with placeholder text

  3. an even row with placeholder text

Use the Microsoft template wrapper around that table.

5

Upload the .pptx file

If Enable New Microsoft Template Upload is checked, upload the file through the newer Microsoft template upload flow.

If it is not checked, upload the file in Template Editor.

6

Generate and test with real data

Test the template with real Salesforce records.

Verify merge fields, slide overflow, images, related list output, and conditional sections before rollout.

Core PPTX syntax patterns

Merge fields

Wrap merge fields in square brackets.

Use this same pattern for standard field paths too.

Conditional logic

Wrap both RENDER tags in square brackets.

Keep merge fields inside rendered content in square brackets too.

Use the same operators you use in standard conditional logic.

Nested render blocks work too.

Named queries

Wrap both the query block and output fields in square brackets.

PPTX named query output fields wrapped in square brackets
Wrap named query output fields in square brackets too.

If you need a filtered or offset result, keep the same square-bracket wrapping.

PPTX related lists render inside PowerPoint tables. Because the related list syntax is integrated within the styling table, no <class> or <tableformat> tags are needed.

PowerPoint table with header, odd row, and even row
Build the PowerPoint table with a header row, an odd row, and an even row.

Simple steps:

  1. Insert your styling table: header line, 2 rows, and as many columns as you need.

  2. Add the whole related list code block inside the table.

  3. (For <soql> tables) Make sure each <column> matches a field returned in SELECT.

For PPTX syntax, four rules matter most:

  • merge fields use square brackets

  • named query output fields use square brackets

  • RENDER blocks use square brackets

  • merge fields inside rendered content also use square brackets

Common syntax mistakes

  • Field prints as text: add square brackets around the merge field

  • Conditional block does not run: wrap both opening and closing RENDER tags in square brackets

  • Named query returns nothing: confirm the output field is wrapped in square brackets and included in SELECT

  • Related list table breaks: confirm the table has a header row, an odd row, and an even row

  • Only the first table cell populates: recreate the PowerPoint table and simplify table styling

What PPTX supports

PPTX templates support these common S-Docs capabilities:

  • merge fields

  • conditional logic

  • named queries

  • related list tables

  • images and slide-native PowerPoint formatting

  • generation through S-Docs LWCs and the SDK when uploaded through the newer Microsoft template upload flow

Important PPTX limitations

Keep these PPTX-specific 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 list tables cannot span multiple pages or slides.

  • You may need LIMIT and OFFSET to control table size.

  • Templates uploaded through the legacy Template Editor have an approximate limit of 10 slides.

Next reads by goal

Last updated

Was this helpful?