Skip to main content

Table of Contents

Creating database templates


Only available versions of this content are shown in the dropdown

To create a new template for database exports, complete the following steps:

  1. In App Studio, click Content Treatments .

  2. On the Treatments landing page, click Create Database .

  3. Enter a description of the template.

  4. Select the issue and group for storing the database template rule.

    To create the rule at the top level of your next-best-action business structure, leave the Issue and Group fields empty. The level at which you create the template determines the attributes (action details) that are available for use within the template.
  5. Click Create and open.

  6. Provide the following information:

    1. In the Database field, specify the name of the Database rule (Data-Admin-DB-Name) that points to the database where the system writes output records for the output template.

    2. In the Table field, enter the name of the table where you want to write the output content for this template.

  7. Specify whether you want to finalize the template at the end of each outbound run.

    By finalizing a template at the end of each outbound run, you ensure that all actions from the run are written to the database at the same time. That is, the final output includes all data related to the run that triggered the finalization. .
    If you choose to finalize the template at the end of the run, all data from the run is appended to the existing data in the table.
  8. If you did not choose to finalize the template at the end of each run, specify how you want to write the information to the destination database:

    • To replace the data in the destination table with new data, select the Overwrite existing data check box.
    • To add new data to the destination table, select the Append to existing data check box.
Did you find this content helpful?

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Ready to crush complexity?

Experience the benefits of Pega Community when you log in.

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

Pega Community 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
Contact us