Chapter 02

A case to run it on

The engine needs somewhere to run from. A tiny single-screen case gives it fields to read, a property to hold the finished HTML and a view to show it in.

Pega 24 – 26

Words you will meet

  • Case type
  • Text (Long)
  • Rich Text Editor

Phase 2 · Step 4

Create a single-screen case type.

  1. App Studio → Case types → + New.
  2. Name it Payment Reminder.
  3. Keep the default single stage and single step.
  4. Add the following fields:
Fields on the Payment Reminder case type
Field nameTypePurpose
CustomerNameTextUsed in the salutation and address
AmountDueCurrencyAmount shown in the reminder body
MembershipLevelText (Picklist: STANDARD, GOLD)Controls which paragraph shows
PlanTypeText (Picklist: PAY_NOW, INSTALMENTS, HOLD)Controls which of three body paragraphs shows, in the later chapter on variants

The field names, picklist values and sample text in this guide are illustrative, so use your own where you like.

Phase 2 · Step 5

A property for the HTML.

The engine hands back one finished piece of HTML. You need a property to catch it.

  1. In Dev Studio, open your work class: MyApp-Work-PaymentReminder.
  2. Go to Data model → + Add property.
  3. Name it LetterHTML (or any name you prefer).
  4. Type: Text (Long).

Phase 2 · Step 6

A place to show it.

A Rich Text Editor is the control that draws HTML as a formatted letter instead of showing the tags.

  1. Open the Constellation view for your case step.
  2. Drag a Rich Text Editor component onto the canvas.
  3. Bind its property to .LetterHTML.
  4. Set it to Read-Only (or editable, if users need to amend the letter before sending).

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