Skip to main content

Data transforms

Data transforms

The purpose of a data transform is to manipulate data in an application. Data transforms copy or manipulate data into the fields that you require. You can use data transforms to convert data from one type to another, iterate over page lists or page groups, and copy entire pages at a time. 

In the following image, click the + icons to explore how Pega Platform™ uses data transforms to improve the checkout process of a purchasing application.

Converting data using data transforms​

You can use data transforms to convert data from one type to another type. For example, you receive an order delivery date input from another system as a string value, such as "December 4, 2021." Use a data transform to copy and convert the stored string format of the delivery date into the date value property, 12/04/2021.

To convert a string into a number, open the expression builder, click the Configure icon, and then use the out-of-the-box functions that are available in Pega Platform. In the credit card number example, you can use the toInt() function. 

Calling data transforms in flows

You can call a data transform from a flow. In a flow, click the connector to open the Connector properties window. In the Set properties section, select Apply data transform.

Apply data transform in a flow rule

Consider another example. An auto repair parent case has a child case that manages providing the necessary repairs. The child case contains a menu of possible items and available services, including unit costs. The items and services that are provided are copied to the parent case for invoicing. Use a data transform to iterate over the list of possible items and services and copy only those entries with a quantity greater than zero.

An auto repair parent case and service child case uses a data transform
Tip: When you access information in different cases (for example, in a parent-child case relationship), consider referencing data from the parent case, rather than copying information from the parent case to the child case. Reference data to avoid synchronization issues if data changes on the parent case.

Check your knowledge with the following interaction.

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