Constellation Studio docsOpen the studio

Publishing components to Pega

On this page

The studio turns designs into real Constellation custom components and publishes them into a ruleset of your Pega application. This page explains the kinds of component, how to publish each one, how to use it in App Studio, and good practice. It works the same in the online studio and the local one.

The kinds

Kind What you select Becomes in Pega Typical use
Form template The whole design (Publish to Pega) A view template (FORM), <Org>_<Library>_<Name> The whole screen of a step: layout, sections, styled fields, banners
Field One field (Export as DX component) A Field component for one property type (Text, Picklist, Decimal, Date…) A single property shown your way in any view
Widget A group without fields, or a bound data component A PAGE/CASE widget Static content (header, banner, KPI strip) or a live list/chart from a data page
Read-only display Also publish as… (a design or group with fields, or one field) A view template (DETAILS), Studio_Details_<Name> Read-only case data on a case page or Details view, with your layout and look
Editable widget Also publish as… (a design or group with fields) A PAGE/CASE widget, Studio_Widgets_<Name> Fields of the open case edited in place (case-page tab or Utilities) and saved through Pega's Edit details action
Companions Created for you with a form template Fields and widgets the template needs (range sliders, timelines, gauges, bound data) Published before the template, automatically

Export as DX component chooses the kind from the selection and says which one it is at the top of the dialog (for example "Field · Text" or "Widget · PAGE / CASE"). A group that contains fields becomes a form template. The same content can also be published as other kinds in the same go: see Also publish as….

How the studio decides

Both publish dialogs show Publishes as: with a one-line reason, worked out by the same rule the export itself uses, so the two cannot disagree.

Below it they count the design's parts by level (Pega, Custom, App only, Mockup; see the level of every part) and say how many custom component rules the publish creates: Pega raises a guardrail warning for each, and your team maintains them through every Pega upgrade. Parts that are only a picture in Pega are named. Publish all screens (case flows) gives the same guardrail line.

The kind

Names

What a republish under the same name keeps

The overwrite warning. The studio keeps a record of what it published under each key. Before publishing over a key it warns, and you must tick a confirm box, when the key was last published:

When several components are published in one go (see Also publish as…), every warning is listed by component name above one tick, Replace this component anyway or Replace these N components anyway. Ticking it covers exactly those components under those names: ticking or unticking a kind, or renaming one, asks again.

Pega does not refuse a different kind under the same key. Its publish_component service silently replaces a form template with a widget (or any other kind) published under the same name (seen live on 26.1, 2026-11-18). The studio's warning and confirm tick are the only guard, and they only know what this browser published.

No record yet. When a key has no publish record in this browser and its name was typed by hand or is an old Studio_Components_… export, the dialog says so in a neutral note: if the component already exists in Pega, publishing replaces it without a warning or change list.

What will change in Pega. On a republish the dialog compares the value bindings stored at the last publish with the new package: fields that keep their bindings, new fields that may need a Pega property, and removed fields whose setting stays in the view, unused. Each line names the field by its label (for example "Servings"), never by Pega's internal setting name; two fields with the same label also show their property ("Servings (.Servings)") or their position, and a field without a label reads "Unnamed field". It covers value bindings only (fields, gauges, timelines), not texts, layout or data-page settings.

Companion components (live data widgets, range and timeline fields published with a form template) are published too, but the warning and the change list cover only the main component.

Used for. Each design can say what it is for, in Design settings (click the design name): Step form, Page content (widget), Single field or App page. Left on Automatic it is worked out:

Checks that follow from it (in Checks and in the publish gates):

Why names carry no dates or numbers. A component key is what views point at; a new name each time would leave every view on the old one. To keep versions, publish into a new ruleset version that the application owner creates in Pega (the studio never creates one), and use the studio's version history and its publish record (which design, version, ruleset and time) to see what went where.

Limits of the publish record

Also publish as…

Teams sometimes want the same content as a widget instead of a form, or as a read-only display beside the form. Also publish as… in both publish dialogs publishes the same content as other kinds of Pega component in the same go, each under its own name.

What is offered (only kinds the content can validly be; the dialog's own kind is never offered again):

Content Publish to Pega (main: form template) Export as DX component
Fields Editable widget, Read-only display main form template + Editable widget, Read-only display
One field only Field, Read-only display main Field + Form template, Read-only display
No fields Widget main widget + Static step screen (a form template without fields: it shows the screen as designed in a step and saves nothing)

Nothing is offered for an App page, a live data widget, or a display-only snapshot publish.

How it runs

Read-only display

A view template of subtype DETAILS, the kind Pega uses for read-only case data (Details views, the case page). It is generated from the same code as the form template, so the layout, theme, style and interaction are the same, but every field is drawn as label + value from the case (through its @P .Property setting, like the form template's value settings) and it never writes: no inputs, no pre-filled values, no validation. Non-field content is drawn as designed, and Region A (Fields, Views) holds Pega's own content, drawn at the design's first region, else below. Value checks are left out; shown when rules stay. Conversations draw their answers as label/value lines; upload areas are left out.

In App Studio, choose it as the template of a Details view. Run in Pega draws it read-only too (the runner never draws a Details or read-only template as an editable form).

On a case page's Details tab it showed the case's values as plain text, with Pega's own fields in Region A below.

Editable widget

A PAGE/CASE widget that draws the design's layout (columns, free canvas, cards, theme, style, interaction) with its fields filled from the open case, and a Save button that saves them through Pega's own Edit details action, the way the exported app's case page does:

  1. GET cases/{ID}/actions/pyUpdateCaseDetails?viewType=form reads which fields Pega allows and the case's eTag;
  2. PATCH cases/{ID}/actions/pyUpdateCaseDetails?viewType=none with If-Match sends only the changed values.

Inside Pega every request goes through Pega's own client (PCore.getRestClient()), so Pega signs it; the widget never handles a token. The layout keeps the form template's field controls through a small local stand-in for Pega's field API: it reads the loaded Edit details values and writes to the widget's own state until you press Save.

Changing Servings to 6 and pressing Save wrote it to the case through Edit details (read back 6; the case history says "Performed a 'Edit details'").

Where each kind goes

Place in App Studio What it accepts Our kinds
Other Views → Form (a step's view) Template list; region: Fields, Views Form template
Other Views → Partial (Details) Details templates; region: Fields, Views Read-only display
Full Page View → Tabs → a tab's region Widgets, Views, Fields, Insights Widgets (editable widget saves here)
Full Page View → Utilities Widgets Widgets (open from the utility rail)
Full Page View → Summary Fields, Widgets Field via Display as (drew the case value; Pega's gear modal shows the Field's own settings with Pega's Required/Disabled/Visibility pickers); widgets are offered (not tried)
Other Views → List (tables) Pega's own Table template only none: Pega's builder cannot make a custom table template
Landing pages / Home (portal) Widgets, Views Widgets (live data widgets, checked 2026-11-15)
Any view, a property → Display as Field components Field

Pega's UI Designer (26.1). The portal's own UI Designer (purple tab at the top of the portal) offers only Pega's built-in widgets in its Content palette (Agent, App announcement, Pulse, Quick create, Shortcuts, Todo; the list is part of Pega's code, not read from the app), and its Insights list holds Pega Insight rules made in Explore Data. Published studio widgets, like any custom DX widget, are therefore placed in App Studio (landing page regions, case tabs, Utilities), as described above. Its Design tab does list your own Pega themes, including one made from a studio design (see Designing → Use in Pega). It turns Editing on by itself when you open Content; changes made then are saved at once.

Width in Utilities. Pega 26.1 opens a Utilities widget in a 400 px panel, which leaves 368 px for the widget (measured 2026-11-19). Design such a widget on the 368 artboard (the last size button on the canvas toolbar). Tables wrap their text in narrow places, so 3 columns fit without scrolling. When a design is used as page content, the check Too wide for the Utilities panel warns about a table with more than 3 columns or a board: these scroll sideways in Utilities but are fine in a case tab or on a landing page.

Pega fields: configure fields like any Pega view

Publish to Pega with the Pega fields mode: each field is listed as Pega's field to add in its region

Publishing mode → "Pega fields, set up with Pega's gear" is the default for a new form template. It publishes the design's layout and look, but the fields are Pega's own, configured in App Studio exactly like in Pega's templates:

App Studio: one region per field, each holding Pega's field as a row with a gear; the preview draws them in the designed card

The gear opens Pega's own field modal: Display as, label, edit mode, placeholder, helper text and the Required / Disabled / Visibility conditions

Good to know:

Data reference fields (pick a record)

A data reference is a field whose value is a record from a data object, picked from a list: a recipe collection, a customer, a product. Pega stores the chosen record on the case as a page (for example .RecipeCollection). In a form template with Pega fields, the field is Pega's own picker, drawn where the design has it. It comes in two forms:

A published form in the Pega portal: Pega's own Recipe collection picker in its designed place, between the template's fields

1. In Pega, once per field (App Studio, the case type):

  1. Data model: the case type has the field as a Data reference to the data object (Data model → Add field → type Data reference → the data object, and Single record or List of records).
  2. Edit view: the field is in the case type's Edit view (UX → Other views → Edit → Add → Fields → the field). Set its gear there the way you want it everywhere: Display as (drop-down, combobox or table), the data source (the list data page, for example D_RecipeCollectionList) and the display field (for example Recipe collection name). Set up in Pega copies the field from this view, settings included; a field that is not in it cannot be copied.

2. In the studio:

  1. Add a Reference component (Form group) for a single record, or Multi-select / Checkbox group for a list.

  2. Set its Pega property:

    • a single record: the page followed by .pyGUID, for example RecipeCollection.pyGUID (Pega keys a record by its pyGUID);
    • a list: the list itself, for example PairedRecipes.

    The Data page and Label property options only change what the canvas shows; in Pega, the field's own gear decides.

  3. Publish to Pega with Pega fields, set up with Pega's gear. The dialog lists the field as "place the single Data reference here (Pega's own picker)". The template gets a region named after the field, for example Recipe collection (.RecipeCollection.pyGUID).

3. Place it, either way:

What to expect on a case: the picker lists the data page's records. The chosen record is saved on the case page with its key and display value, for example RecipeCollection: { pyGUID, RecipeCollectionName: "Quick Weeknight Dinners" }. The rest of the form stays the template's own (the scan button, the inline edit and the marking in the picture).

Fields without a Pega property

You can publish a design whose fields have no Pega property yet. Such a field saves nothing until it is linked to a real property. What happens depends on what you publish:

Published as What Pega shows How to link it
Form template The field's setting in App Studio holds a property name guessed from the label, which usually does not exist, so Pega shows the field disabled with a setup message In the studio (recommended), or in App Studio: open the view, select the template, set the field's property setting to a real property and save the view. No republish needed; the setting stays across later republishes of the same key
Read-only display No value for that field Same as the form template
Editable widget The label and "No Pega property was chosen for this field, so it cannot be saved." Only in the studio, then republish: a widget has no property setting in App Studio

On a step form the check Field without a Pega property stops Publish until you tick Publish anyway.

A field you add to a design that is already on a view: after you republish, the new field shows in the step at once, in its designed place, but says "Bind this field to a case property." Pega fills a new setting's default only when the template is first chosen for a view, so the property you set in the studio does not reach a view that already uses the template. Open the view in App Studio once, pick the property in the new field's Property setting and save the view (or run Set up in Pega, which adds missing settings with the studio's values). From then on it saves like the other fields; later republishes keep it. Fields that were already there keep their binding.

Recommended: link the property in the studio (Properties → Pega property) before you publish. It is one place, it works for every kind (including the editable widget), the checks stay clean, and Run in Pega and the exported app use the same binding. If the property does not exist yet, Set up in Pega can create it (into an existing branch only). Link it in App Studio only when the property exists only in Pega or someone else owns the view.

Look in Pega: the app's theme or the design's own colours

Publish to Pega and Export as DX component ask how a template should look in Pega (Look in Pega):

Good to know:

Translations

Published components follow Pega's localization. In Pega fields mode the fields are Pega's own, so Pega translates their labels like any field. Everything else a component draws itself goes through Pega's localization service for the view: add translations with Pega's Localization wizard, and Pega shows them in the user's language. Where Pega has no translation, the text stays as designed. That covers:

Messages with a number or name in them are translated with a placeholder: add a translation for Enter {0} or more. and the studio puts the number in after translating. Sample data inside pictures is translated like any other text: a value with no translation stays as it is.

How to publish

  1. Connect to Pega with a client whose operator may publish DX components, and choose the right Pega Infinity version. That version decides which DX Component Builder builds the component.
  2. Open Publish to Pega (the whole design) or select something and choose Export as DX component (canvas toolbar, the Properties panel, or ⌘K).
  3. Check the name. The dialog shows the component key and its App Studio label on one line; press Change to edit them:
    • Organisation, Library and Component name make the key, Org_Library_Name.
    • The Label in App Studio is what developers see in pickers.
  4. Fix the Pega guideline checks. Errors block publishing until fixed or explicitly overridden.
  5. Enter the ruleset and version. The ruleset must be unlocked and in your application stack, for example CustomConstellation:01-01-01. The studio never creates rulesets: before publishing it asks Pega's rule search (with your own Pega sign-in, online and on your computer alike) whether this exact ruleset version already exists, and refuses otherwise. The operator you connect with must be allowed to search rules; if Pega refuses the search, nothing is published.
  6. Press Publish to Pega. The studio runs the same steps as npm run publish in Pega's own starter project (@pega/custom-dx-components), in the same order, on the studio's server:
    1. Validate config schema: Pega's check of the component's config.json.
    2. Lint: ESLint with the starter project's own eslint.config.mjs and tsconfig.json. Like Pega, any error or warning stops the publish; nothing reaches Pega, and the dialog shows ESLint's report (file, line, rule). Every component the studio generates passes it as generated, so this only stops your own React components or a studio bug (please report it).
    3. Build with Pega's DX Component Builder, then send it to Pega's publish_component service.
    • It takes about 20 to 40 seconds, plus about 15 seconds for the first publish after a quiet period online.
    • The dialog confirms it, for example "Published Studio_Components_OnlineHeaderWidget (Widget) to CustomConstellation 01-01-01".

Download DX source gives the same component as source code (index.tsx, config.json, a mock, Storybook stories, a test and docs), for a @pega/custom-dx-components project or a code review. It passes that project's lint too, so npm run publish there works without changes.

How to use them in Pega

Take a copy of a view before changing it, or work in a branch.

Rules in a published form (Properties → Interaction → Rules): the template reads the case values itself and shows, hides, requires (asterisk) and locks its fields as the rules say, also in App Studio's preview; a failed value check shows under the field. Pega's Submit waits for these checks: each checked field joins Pega's own form validation, so Submit is refused and Pega shows the message in its error banner until the value is fixed. These checks run in the browser, so anything that must always hold (for example data that also arrives through an API) still belongs in Pega itself as well, such as a validate rule on the flow action. A published field's own Required setting is not part of Pega's validation; use a required-when rule.

Your look on Pega's own screens: Themes → Kit → Use in Pega downloads the screen's look as a Pega theme (Designing). It changes the portal, case pages and the forms Pega draws, not only your published components.

After republishing: Pega keeps the component's address and version stamp (?v=). A browser that already loaded the old version keeps using it, even though Pega's server already has the new one. To see the new version, use one of these:

Set up in Pega (Pega 26.1)

In the online studio Set up runs Pega's authoring tool through a small setup helper on your own computer (Pega's tool is Java and cannot run in the browser). Install and pair it once per session: see Getting started → The setup helper. The local studio needs no helper. The helper is a temporary workaround until Pega Infinity 27 makes this authoring native (expected) or the studio's hosting changes.

After publishing a form, step 3 of the Publish dialog can also make the App Studio changes for you. It stays folded until you open it, and opens by itself right after a publish. Enter the case type class and the step's view (for example UploadRecipePhotos), pick what to do and click Set up in Pega.

Work in a branch, then merge. Set up saves every change in an existing development branch of your application (for example BP-1), never straight into the application's ruleset. That is how Pega recommends building any change, new properties included: develop and check in a branch, then merge the branch into the application ruleset (App Studio → Branches → Merge). Pega's own authoring tool enforces it: it refuses to save a rule without a branch. Rules that already live in a branch can only change in that branch.

How it works and what to expect:

Explain the Pega application (Pega 26.1, local studio)

⌘K → Explain the Pega application reads the application you are connected to, without changing anything: its description, its case types, and for each case type its step views (and which already use a studio form), flows, fields and data pages. Copy as text gives the same overview as short sentences for a ticket or a chat. It uses the same Pega authoring tool as Set up in Pega.

Which package versions the publisher uses

Pega loads a published component inside its own page, so the component is built with Pega's recommended versions:

They are not the newest versions. A mismatch can make a component load and draw nothing: a React 19 build did exactly that on 26.1.

Good practice