Chapter 03

The three tables

Your document lives in three small tables: one row for the document, a row per section and a row per paragraph. Names are matched exactly, so copy and paste them.

Pega 24 – 26

Words you will meet

  • Content Type
  • Content Section
  • Content Paragraph

Phase 3 · Step 7

Define the document.

In App Studio, open Data → Document Content Type → + Add record and add one row:

The Document Content Type record
FieldValue
Code (required)DOC0003
DescriptionPayment Reminder
Header Footer Paragraph IDLeave blank for now
Style Paragraph IDLeave blank for now
Is Activetrue

Phase 3 · Step 8

Define the sections.

Add one row per section. The example uses three sections, for a standard letter: a start, a body and an end.

The Document Content Section rows
CodeSection nameDocument IDSequenceIs active
SEC0001LETTER_STARTDOC00031true
SEC0002LETTER_BODYDOC00032true
SEC0003LETTER_ENDDOC00033true

Phase 3 · Step 9

Define the paragraphs.

Each paragraph row maps a section to a Pega Paragraph Rule. One section can hold several paragraph rows, and that is exactly how conditional branching works: put every candidate paragraph in the same section, mark it Is Conditional = true, and let the decision table pick which one renders.

The Document Content Paragraph rows
CodeSection nameParagraph IDSeqIs conditional
PAR0101LETTER_STARTPR_Salutation1false
PAR0102LETTER_BODYPR_BodyStandard1true
PAR0103LETTER_BODYPR_BodyGold2true
PAR0104LETTER_ENDPR_Closing1false
  1. Rows with Is Conditional = false always show.
  2. Rows with Is Conditional = true show only when the decision table says so.
  3. Rows in a section show in Seq order.

Your turn

Questions and comments

Stuck on something, or have a thought? Write it here. To talk about one part, use the Comment button under that section's heading.

A hands-on guide by Sanjeev Kujur. Independent, and not affiliated with or endorsed by Pegasystems.

Tested against Pega Infinity v26 / Constellation v26 · Updated 5 Nov 2026