Skip to main content
The Java function described in the Installation section returns a JSON string. It is recommended that you transform this string so that the result is displayed as case fields. To do this, you need to create a record of type Data Transform. To create a Data Transform record:
  1. Open Dev Studio and create a new case type.
  2. On the Data model tab, add the fields to be handled by your case and click Save.
    Screenshot of the Data model tab in Pega Dev Studio showing the case fields Attachments, Currency, Invoice Date, Invoice Number, Line Items, and Total.
  3. Click Records → Data Model → Data Transform and then click Create to open the Create Data Transform window.
  4. In the Label field, specify a name for your new record.
  5. In the Additional configuration options section, select JSON.
  6. In the Apply to field, specify the full name of the case type you created earlier.
    Screenshot of the Create Data Transform window in Pega Dev Studio with the Label set to JsonToInvoiceFields, JSON selected as the data model format, and the Apply to field set to the case type.
  7. Click Create and open. In the window that opens, map the JSON properties (displayed in the JSON column) to the case fields (displayed in the Clipboard column):
    Screenshot of the Edit Data Transform Definition tab in Pega Dev Studio mapping JSON properties to the Clipboard case fields .InvoiceNumber, .InvoiceDate, .Total, .Currency, and .LineItems.
  8. Click Save.