Skip to main content

Table of Contents

Creating file templates


Only available versions of this content are shown in the dropdown

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

  1. In the Pega Customer Decision Hub portal, click Content Treatments .

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

  3. Enter a description of the template.

  4. Select the issue and group for storing the output 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 Repository name field, enter the name of the repository where you want to store the file.

    2. In the File path field, enter the path on the repository where you want to store the output file, and the name of the file where you want to store the output content.

      The format for the file path and name is /folder/filename.
      If you configure multiple output templates,each file must have a unique name.
  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 run, you ensure that all data in the file is the result of a single run. That is, the final output includes all data related to the run that triggered the finalization. If want the data from multiple campaigns to be written to the same file, leave this option unselected.
  8. If you chose to finalize the template at the end of each run, select Include run ID in the file name if you want the file name to include the run ID for easier identification.

  9. Specify whether you want to include the date and time in the file name when you finalize the template.

    When the template is finalized, the name of the output file includes the date and time configured in the MKTFileNameDateMask dynamic system setting. By default, the format is YYYY-MM-DD-hhmmss
    As a best practice, if you chose to finalize the template at the end of each run, configure the file name to include the run ID, the data and time of the template finalization, or both. This prevents the output file from being overwritten by subsequent runs,
  10. In the Delimiter type field, select the delimiter for the output CSV file.

    Use a delimiter which is recognized by the target repository for the file. Common delimiters include commas (,) and semicolons (;).
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