Skip to main content
Verify the version tags to ensure you are consuming the intended content or, complete the latest version.

Application Settings feature

Before an application is live, it moves through many environments, such as development, quality assurance (QA), and staging, before production.

When migrating an application from one server or environment to another, references to the external systems connected to the application, such as endpoint URLs and JNDI servers, typically change. You need to modify the information the application requires to connect to these external systems, depending on your environment.

For example, a stock trading company has a Pega Platform™ application, which points to a web service for stock pricing data and an email server for notifying users by email.

In the following image, click the + icons to identify how Application Settings work.

The previous example provides only two sets of settings, but an application can have dozens of connectors and setting information. You do not want to update the environment settings for each application individually or risk missing one and delaying the application going live.

To avoid missing any settings, use the Application Settings feature to reference external systems by environment. You can use Application Settings to define values for settings, which can vary by environment, without updating integration rules and data instances. Application Settings can have one of the following value types:

  • Text
  • Boolean
  • Enumerated list
  • Class

Application Settings categories

A Pega Platform application can have many application settings. Using Categorization, developers can group related application settings to simplify finding them and understanding their purpose.

Create categories to make it easier for users to search for application settings. For example, if you create a category called Integration, you can apply this category to application settings that relate to integrating with customer data. In Dev Studio, select Create > SysAdmin > Category, and provide a short description and name.​​​​

In the following image, the example shows the fields required to create a new category.

Create category

Parent categories

Categories can also have parent categories to group similar categories by purpose, for example, Security. To group multiple categories, on the Definition tab, in the Parent category ID field, press the Down arrow key to specify a parent category.

Application setting values

You configure separate values for different production levels in Dev Studio. At run time, the system uses the application setting value that corresponds to the current production level.

Production level values support the following environments: 

1 - Sandbox
2 - Development
3 - Quality assurance
4 - Staging
5 - Production

View, search for, and edit application settings from the Application Settings landing page in Dev Studio, using the navigation path shown in the following image:

Application settings

The landing page displays application settings that correspond to the current production environment that you are using. You can edit the values of an application setting, for example, an endpoint URL. 

Open the application setting rule that you want to change. In the Value column, enter the setting value for the specified production level. Before you change an application setting value, ensure that the application setting is in an unlocked ruleset. For example, to change the Production value, ensure that the application setting rule is in the production ruleset. 

The following image shows the Application Settings, Settings tab, where you can modify the values for each production level:

Production level service endpoint url
Note: The fields in the Value column display differently depending on the value type that you select in the Value type field. For example, if you choose String/text, the Value column displays fields in which you enter a text value. If you choose Boolean, you will see a checkbox instead.

Out-of-the-box data page for Application Settings

Pega Platform provides an out-of-the-box (OOTB) data page, D_PxGetApplicationSettingValue that makes it easier to retrieve the values you need. You create application settings in which you store the values, and then the data page brings the environment property rules together with the values and writes those property and value pairs to the clipboard.

In the following example, an OOTB data page is used to fetch the Application Setting values. 

Application settings data page

For example, you can create a new Application Setting that contains the configuration settings for an integration with values that change from one environment to the other. At run time, the system accesses the D_pxGetApplicationSettingValue data page to load those settings.

Check your knowledge with the following interaction.


This Topic is available in the following Module:

If you are having problems with your training, please review the Pega Academy Support FAQs.

Did you find this content helpful?

100% found this content useful

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Academy has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice