Setting Up Correspondence Templates

This chapter provides overviews of correspondence templates and delivered template objects, and discusses how to:

Click to jump to parent topicUnderstanding Correspondence Templates

This section discusses:

Click to jump to top of pageClick to jump to parent topicTemplate Architecture

The use of predefined templates facilitates the creation of standardized communication. Templates consist of static content and terms. Terms represent data from the PeopleSoft system or general variables such as the current user or the current date. When end users send template-based correspondence, the system resolves the terms and merges the term data into the template to produce the final correspondence.

Template Packages and Package Usage

You make templates available to end users by bundling them in template packages. Packages can contain both templates and nontemplate (static) documents. Optionally, you can designate one template as the cover letter or email body.

Packages are associated with a specific language and with a usage. The usage determines the contexts from which the package is available. Generally, the runtime context for correspondence is the component from which the correspondence is sent. For example, from the Case component, you can access either the Send Notification page or the Correspondence Request page. From either of those pages, you can select packages with a usage that includes the Case component.

If you license PeopleSoft Multichannel Communications and use its email response management system (ERMS), you can also send template-based email correspondence from the context of inbound email. ERMS uses the email information, such as category, type, product group, product, language, related transactions and solutions, that is available from the email workspace to return a list of templates that are applicable to the email when sending responses.

When associating a package with a usage that includes multiple components, be sure that the terms in the package's templates can be resolved from any of the components. For example, if you define a single usage for sales and you associate that usage with both the Lead component and the Opportunity component, then the templates in a package with that usage need to be valid from both leads and opportunities.

PeopleSoft delivers several usages, including one called General Purpose, which is associated with all correspondence-enabled components. Use the General Purpose usage for correspondence that does not rely on any specific transactional context. For example, an introductory letter or a thank you letter that does not reference transactional data.

Template Packages Used in AAF Email Notifications

PeopleSoft CRM leverages correspondence templates to generate contents for automatic email notifications (a type of workflow action) that are sent via the Active Analytics Framework (AAF). When a correspondence template packages is specified as a workflow template (an attribute on the page), it is used only by AAF to send email notifications and is not applicable for users who want send a manual notification or correspondence request from a CRM transaction. The primary difference between the workflow-specific correspondence template packages and standard packages is that the former can contain terms that are resolved into data coming from the component buffer. The type of implementation for this kind of terms is context variable.

Templates

Template packages contain one or more template definitions, which in turn reference individual template files. Template files are marked for use with print correspondence, email correspondence, or both. The print and email versions are normally different presentations of the same content, although you can vary the content as necessary.

Template definitions support the following configurations:

Four types of template files exist:

Because RTF files, unlike plain text templates, permit formatting, they are the best choice for all print templates, and they are often the best choice for email attachments (although you might want to convert them to PDF files rather than sending them in RTF format). Although you can use text templates for printing, the resulting plain text output is not usually suitable for correspondence. HTML templates are most useful for email body text.

External RTF and text files are uploaded into the system at the time they are associated with a template definition. When users generate correspondence that is based on external templates, the system downloads the templates to the PeopleSoft Process Scheduler server where terms are resolved and merged documents are created. The system then uploads the final merged documents to provide a permanent record of your correspondence. Set the locations of uploaded files (templates and merged documents) on the Correspondence Management Installation Setup page.

To create correspondence based on RTF files, you must set up the uniform resource locators (URLs) that are used to reference and access the various uploaded files.

See Supplemental Installation Instructions for PeopleSoft 9.1 CRM Applications.

Click to jump to top of pageClick to jump to parent topicRuntime Template Handling

PeopleSoft CRM uses correspondence templates to send different types of template-based communications, which include:

Template Handling for Manual Notifications

When users send manual notifications, the channel is always email (in this context, email encompasses both true email and worklists). The language is always the language with which the user logged onto the system.

The prompt for template packages is limited to packages of the appropriate language and usage. It is also limited to packages that contain only one email template and that template must be an internal template (not a .txt or .dot file). The prompt excludes packages that are specified as workflow templates.

When you define template packages for use with manual notifications, use the Cover Letter/Email Body field to identify the template. Do not include any static attachments.

When creating manual notifications, users select one package at a time and explicitly apply it. Applying the package forces an immediate merge, and the merged text is inserted into the notification's Message field, which contains the email's body text. Recipient-based terms are resolved based on the first external recipient listed. Therefore, users need to address the notification before applying the template, and they need to reapply the template after changing the notification's recipient list.

When applying a template, the system does not overwrite existing message text. Instead, as each template is applied, its body text is added to any message text that is already there. This enables users to apply multiple templates in sequence and to mix template-based text with free-form text. Users can also modify the template-based text once it appears in the body text field. The location and format of the newly added text depends on whether you license PeopleSoft Multichannel Communications and, if so, how you configure it.

Internal text and HTML templates have subject text as well as body text. The subject text is applied only if the modification's subject field is blank. This means that once a template with subject text has been applied, the subject text of any subsequently applied templates is ignored.

Template Handling in the Correspondence Request Page

The Correspondence Request page supports packages with any number of templates, and it supports both print and email correspondence.

When users send correspondence from the Correspondence Request page, they explicitly select a channel and a language before prompting for template packages. The system limits the template package prompt based on the user's selections and based on whether the package's usage is valid for the context from which the Correspondence Request page was accessed.

Once the user selects a package, the system selects the appropriate subset of templates based on the selected channel. For example, the following diagram illustrates one possible configuration for a template package:

Channel-specific templates in a package

When the selected channel is email, the correspondence request includes template files A, B, and D. When the selected channel is print, the correspondence request includes template files A and C (and thus only template definitions 1 and 2).

Similar to manual notifications, the prompt excludes packages that are specified as workflow templates.

Because correspondence requests can include multiple templates, email correspondence applies additional logic to determine which template is used as the email body. Package definitions enable you to designate a cover letter template. The first internal (HTML or text) cover letter in the correspondence request is used as the email body. It is also used to set the subject of the email. Only one template provides the email body text; all other templates (including cover letters for additional packages in the request) become attachments. The content of internal templates is converted to .txt files for this purpose; subject text from internal HTML or text templates is ignored. Attachments based on HTML templates are saved in .txt files (with the HTML tags included in the text content).

Note. Attachments are not supported in email that is sent as workflow notifications by AAF.

For example, the following diagram shows two packages, each containing a cover letter (an HTML template) and an RTF file:

Packages with internal text templates

If a user accesses the Correspondence Request page and configures an email correspondence request with these two packages, the resulting email uses template A to set the email subject and body text. Templates B, C, and D become attachments. Template C becomes a .txt attachment, and the other two attachments are RTF files (unless they are converted to PDF).

Template Handling for AAF Email Notifications

The channel for correspondence packages that are used for sending automatic workflow notifications is always email. Each of them contains only one email template, and it must be an internal text template.

When defining template packages for AAF email notifications, use the Cover Letter/Email Body field to identify the internal text template and do not include any static attachments. The template, which provides the content of the automatic email notification, can contain terms that are resolvable by accessing data directly from the component buffer. Typically, these terms have the implementation type of context variables for the contexts of trigger points, for which AAF policies are processed.

Note. The term selection page (where you select terms to be included in correspondence templates) lists every term that is available in the AAF data library. In most cases, only a subset of terms are resolvable in a template because most terms are context-dependent. In other words, whether or not a term can be resolved in the template depends entirely on the context from where the request is made. Please refer to the appendix for the listing of contexts from where correspondence requests are initiated for each of the transactional components. Contexts determine which terms can be resolved. Refer to PeopleTools documentation for AAF for more information about how to identify whether or not a term is resolvable for a context.

PDF Options

Correspondence that is sent from the Correspondence Request page and that is based on text templates can be converted to PDF files before it is sent. (In the Send Notification page, however, the system always applies template text directly to the email body; PDF conversion settings are not applicable.) Note that HTML template correspondence cannot be converted to PDF files.

PDF conversion options are set at the system level and, depending on the system settings, at the package level. The PDF setting is not applied to the template that provides the body text for email correspondence; it is applied to email attachments and to all printed documents.

Correspondence that is converted to PDF is both delivered and stored in that format. The system overwrites the merged version of the RTF or text file with the PDF at delivery time; until the correspondence is delivered, it remains in its native format so that the sender can personalize the content (if your system settings allow personalization).

Click to jump to top of pageClick to jump to parent topicTerms, Term Groups, and Subtemplates

Terms, term groups, and subtemplates are collectively referred to as term objects in this chapter. They are the variables that you incorporate into correspondence templates.

Note. Please refer to the PeopleTools documentation on AAF, specifically data library and terms, before reading this section.

Referencing Term Objects

When you create term objects, you assign each one a term name. This is the name that you use when referencing the object within a template. Terms, the atomic element of term objects, are defined using the Manage Terms component in the AAF data library. They replace the tokens in correspondence templates used prior to release 9.0, and can be resolved into data that pertains to the context of the correspondence requests. In some cases, terms can be resolved into data regardless of contexts. Referenced in templates, terms, term groups and subtemplates are wrapped in specific term start and end tags (defined on the Correspondence Management Installation Setup page). The system uses these tags to recognize the presence of a term object.

For example, if you create a term with Product as the name and use double curly brackets as your term start and end tags (this is the system default), you place the term in a template in this format: {{Product}}. Term names are not case-sensitive.

Note. All examples in this chapter assume that you use double curly brackets as your term start and end tags.

Terms

Terms are placeholders for PeopleSoft CRM data. The system provides a folder structure, known as the subject area, in which terms are organized functionally. A term can be placed in more than one folder if necessary. The subject area is available throughout the CRM system to facilitate term selection; for example, when you insert terms in templates or subtemplates.

The term subject area includes folders that are specific for system terms and recipient terms. The rest of the terms are transactional and are grouped functionally:

Note. Correspondence templates do not support terms with user binds.

System terms and recipient terms are always resolved by application classes. Transactional terms, however, can be resolved by any of the following five mechanisms:

The system does not perform any formatting of term content; the term's creator is responsible for returning the value properly formatted. For example, if a telephone number is stored in the system as a series of numbers, but you want to format the phone number with hyphens between the numbers, the term must convert the data from the format in which it is stored to the proper display format.

Terms can represent a single value (data at level zero in the context of the correspondence) or a multivalue rowset (data at level one in the context of the correspondence). For example, a term representing a recipient's name resolves to a single value, and a term for line item data in an order resolves to an array (because an order can include multiple line items).

When a term represents an array, you need to package it into either a term group or a subtemplate to ensure that all values in the array are included in the merged correspondence. The implementation of term groups must return a rowset. While processing correspondence requests, correspondence management does not trigger the processing of all the rows in the term even if you set the number of rows to many in the term definition. The situation is different, however, for correspondence templates that are intended for AAF email workflow notification. If the term represents a piece of data that is available in the component buffer as a child scroll (which forces the AAF decision engine to evaluate every row in the child scroll by using a term that refers to a data element in the child scroll), it triggers the AAF workflow action to process every row in the child scroll if the condition of the AAF policy is evaluated to true. The workflow action passes the content of that specific row to the correspondence management for processing. In this situation, every row in the child scroll is being processed by correspondence management.

The same data can be represented by a single-value term or a multivalue term, depending on the context. When you send correspondence related to a specific case, a term for the case ID represents a single value. But if you send correspondence that lists all of a customer's open cases, a term for the case ID represents a single array. Because these two case ID terms are resolved differently, you would need to define two terms to support these two scenarios.

When you create a template definition, you enable the template's term objects by adding them to the Term & Subtemplate & Term Group Reference Detail grid on the Template page. When you add an HTML template to the template definition, the system automatically enables all term objects that are in the template. However, because the system does not parse external templates, it is a manual process to enable the term objects that are referenced in the external template. Failure to enable the relevant terms causes the system to leave unresolved term text in the merged document.

Terms are resolved by the data extraction and merge processes. The merge process is independent of the process that delivers the final correspondence, which means that you can preview the merged correspondence before sending it.

Important! Although term names can contain special characters, such as periods or apostrophes, it is highly recommended that terms that are used in correspondence management templates do not have special characters in their names because XML parsers (used for data extraction) may not support them. Use alphanumeric characters to name terms.

Term Groups

Term groups are used exclusively to manage data from rowsets—that is, data arrays. For example, orders include multiple line items, so you can create a term group to represent the overall line item. Each term in that term group represents one data element from the line item, for instance, the line number, product, quantity, price per unit, or total price.

The terms in a term group represent record.field data from the same rowset, and each must be resolved by the same application class or query.

Data that you reference with a term group is always presented as a table. In internal and external text files, which do not support a table object such as you might use in an RTF file, the tabular format is achieved through character spacing.

A template does not let you refer to term groups as a whole. Instead, use the syntax {{Term Group.Term}} to refer to specific terms within a term group.

In HTML templates, place the term group.term references together in one row without a carriage return or any intervening characters other than spaces, which are ignored during the merge. At merge time, the system replaces the row with a table. The column titles and column widths are controlled by the template group definition. If the term text is longer than the allowed width, it wraps to the start of the next line rather than aligning with its column position. Additional formatting options are possible when using term group.term references within RTF files.

Using Terms in RTF File Tables

For additional control over the presentation of data arrays in RTF files, use tables. This approach gives you access to that application's extensive presentation options. Within a table, follow these guidelines:

The following example shows a portion of the account plan executive report template that PeopleSoft Enterprise CRM delivers. The shown portion includes four tables, three of which include a header row and term group.term references. The other table (the one at the top) references only header-level terms:

Table with repeating rows and single-instance rows (1 of 2)

Table with repeating rows and single-instance rows (2 of 2)

If you've used the table formatting features to create table header rows, those rows are repeated when the table breaks across pages. This, however, is standard word processor functionality and has nothing to do with the merge process.

The following example illustrates another approach to formatting term data:

Table with term group references

In this example, there is a term for a long text field, which is the full text of a case note. Instead of placing potentially long text passages into a narrow column in a standard table, the template uses a table-within-a-table construct. The outer table consists of a single cell; this is the cell that is repeated for each value in the array. The inner table controls the repeating content and its format.

Any formatting that you apply in the table is retained in the final merged correspondence. In the preceding example, the case note summary term is italicized; therefore, the note summaries in the merged document are also italicized. Also, although the illustration includes table gridlines, you can format the table so that the gridlines are invisible. In that case, the final merged correspondence looks similar to this:

Merged correspondence for table with repeating rows

Note. This chapter introduces some strategies for formatting data in RTF files. For more examples of how to format RTF templates, look at the templates that PeopleSoft Enterprise CRM delivers.

Subtemplates

Subtemplates are a type of internal text template. Use subtemplates to create reusable content that can be referenced in either internal or external templates.

Subtemplates can include terms and a combination of static text. For example, a subtemplate containing a standard salutation for letters might include the date, the recipient's name and address, and a greeting such as Dear {{Salutation Code}} {{Last Name}}.

Subtemplates do not have to include terms. For example, you can use a subtemplate for a copyright notice or privacy statement.

Using the term group.term syntax in a subtemplate produces the same formatting as an internal text template: the term group.term data is placed in a table, with column headers and width that are controlled by the term group definition.

Click to jump to top of pageClick to jump to parent topicTemplate Categorization

Besides using the category value to identify valid recommendation of actions to resolve email issues, the system also uses the category to identify the suitable correspondence templates to be used on a response, which is achieved by categorizing templates.

Templates are categorized at the package level. Typically, select a value from one or all of these four new groupings that best represent any given template package:

When the email workspace processes an incoming email, it looks for the appropriate correspondence template packages that can be used for response by matching the email's classification data with the categorization information of the packages from the database.

Note. While an mail can be classified by category, type, product group, product, mood, priority, and language, the system uses the classification data of the first four groupings to identify relevant correspondence template packages for email response.

If the system does not return any suggested template (for example, no match can be found), you can perform template search manually by modifying the classification data on the Response page of the email workspace.

See Also

Replying to Inbound Email

Click to jump to parent topicUnderstanding Delivered Template Objects

PeopleSoft delivers several template objects. Some objects support specific business processes. For example, the order and quote confirmation process in PeopleSoft Order Capture relies on delivered templates. Others are more general-purpose, but even if you choose not to use them, you will find them useful as examples as you develop your own templates.

This section discusses:

Click to jump to top of pageClick to jump to parent topicDelivered Terms

This section describes system terms and recipient terms that PeopleSoft delivers. PeopleSoft also delivers many transactional terms that you can take advantage of and they are organized by functional area in the subject area.

Delivered System Terms

These terms have generic implementations and do not require any input data to be supplied by the contexts. They can be used in any template, regardless of the context from which the template is applied. PeopleSoft delivers these system terms that can be found under the Correspondence Template Terms, System Terms subfolder in the subject area:

Delivered Recipient terms

The recipient terms listed in this section can be used in any template, regardless of the context from which the template is applied. They can be found under the Correspondence Template Terms, Correspondence: Recipient Dtls subfolder in the subject area:

Click to jump to top of pageClick to jump to parent topicDelivered Packages and Templates

PeopleSoft CRM delivers predefined template packages that can be used for sending template-based communications. All of them can be manually applied from the appropriate contexts while some are specific to automatic email delivery, for example, sending automatic email notification through AAF. Access the Template Package search page for a list of system-delivered correspondence template packages. These tables list some of the template packages that are used for sending correspondence requests and manual notifications, not for sending workflow notification through AAF.

General-Purpose Packages and Templates

This table describes general-purpose packages and templates. These are not part of specific business processes, but they provide models for templates that you create:

Package

Templates

Description

Congratulatory Ltr - Job Promo

Congratulatory Ltr - Job Promo

The template demonstrates the use of recipient terms, system terms, and subtemplates. It also demonstrates how each channel can have its own presentation format.

Introduction Letter

Introduction Letter

The template uses only recipient and system terms; it is an example of correspondence that can be sent from any component, including the 360-degree view.

New Email Message Template

New Email Message Template

Use this template as a model when defining templates for use on the Send Notification page.

General-Purpose ERMS Packages and Templates

This table describes general-purpose packages and templates that you can use with the ERMS in PeopleSoft Multichannel Communications. The table does not include transaction-specific packages that you use with ERMS; those are discussed in the following transaction-specific tables:

Package

Templates

Description

None

Email History - Model 1

In ERMS, you can optionally use this template to control the presentation of email history text that is included in an email reply. Email history template selection is the one time that you select a template instead of a template package.

See Defining System Settings for Email Processing.

Auto Acknowledgement

Auto Acknowledgement

This package is available for use when configuring automatic acknowledgement of unstructured email.

Auto Create Case - Exception

Auto Create Case - Exception

In ERMS, the structured email application service for creating cases uses this package to send automated response if the case cannot be created.

Auto Create Case - Success

Auto Create Case - Success

In ERMS, the structured email application service for creating cases uses this package to send automated response if the case is created successfully.

Case-Related Packages and Templates

This table describes packages and templates that you use with cases, including those that the ERMS case inquiry application service uses:

Package

Templates

Description

RC: Case Status Report

Case Status Report

Agents manually apply this package to correspond with a case contact and give status on a case. It can also be used in the email workspace. The template provides problem description and case status.

The template demonstrates the use of terms that are resolved using an application class method.

RC: Case Status - Auto Acknowledge

RC: Case Status - Auto Acknowledge

In ERMS, the structured email application service for case inquiries uses this package to respond to an improperly structured email.

RC: Case Status - Failure

RC: Case Status - Failure

In ERMS, the structured email application service for case inquiries uses this package to respond to structured email that does not provide valid data.

Order and Quote Packages and Templates

This table describes packages and templates that you use with orders and quotes, including those that the ERMS order inquiry application service uses:

Package

Templates

Description

Quote Confirmation

Quote Confirmation

You can configure the Order Capture Workbench to use this package to send a confirmation when a quote is submitted. The confirmation includes the quote number, customer name, status, products, and billing and shipping information.

Order Confirmation

Order Confirmation

You can configure the Order Capture Workbench to use this package to send a confirmation when an order is submitted. The confirmation includes the order number, customer name, status, products, and billing and shipping information.

Order Confirmation Agreement

Order Confirmation Agreement

You can configure order capture workbench to use this package to send a confirmation when an order which contains an agreement product is submitted. The confirmation includes the order number, customer name, order date, order status, agreement details, billing and shipping information.

Order Maintenance

Order Maintenance

You can configure the Order Capture Workbench to use this package to send a confirmation when an order is updated. The confirmation includes the order number, customer name, status, order change details, products, and billing and shipping information.

Order Status

Order Status

In ERMS, the structured email application service for order inquiries uses this template to send order status information.

Order Status - Failure

Order Status - Failure

In ERMS, the structured email application service for order inquiries uses this package to respond to structured email that does not provide valid data.

Sales Quote Proposal

Sales Quote Proposal Letter

Sales Quote Detail

Agents manually apply this package from a quote. It includes a cover letter and the Sales Quote Detail template.

Sales-Related Packages and Templates

This table describes packages and templates that you use with leads and opportunities:

Package

Templates

Description

Sales Quote2

Sales Quote Detail

This is the default package for correspondence requests that you create in the Lead or Opportunity component using the Print button (in the Quotes and Orders grid).

The Sales Quote Detail template is also used in other packages. It includes the quote number, its expiration date, and product details.

Sales Proposal

Sales Proposal Letter

Sales Quote Detail

This is the default package for correspondence requests that you create in the Lead or Opportunity component using the Email Proposal button (in the Contacts grid). It consists of a cover letter and the Sales Quote Detail template.

Marketing-Related Packages and Templates

This table describes campaign-related packages and templates:

Package

Templates

Description

Sample Campaign Template

Sample Campaign Template

Users manually apply this package to send out marketing campaign and wave information (product offers and promotional discounts).

Sample Audience Template

Sample Audience Template

Sample package to send out to audience members (for example to promote an event or product).

Dialog Sample Template

Dialog Sample Template

Sample dialog template.

Service Order-Related Packages and Templates

This table describes packages and templates that the ERMS service order inquiry application service uses:

Package

Templates

Description

Service Order Status

Service Order Status

In ERMS, the structured email application service for service order inquiries uses this package to send service order status information.

Service Order Status - Failure

Service Order Status - Failure

In ERMS, the structured email application service for service order inquiries uses this package to inform the recipient that status information is not available because the service order number was not found.

PeopleSoft Financials Work Order Templates

This table describes packages and templates that the work order application uses:

Package

Templates

Description

RC: Case - WO Desc Change

RC: Case - WO Desc Change

This package is used to send work order description information to the CRM Call Center HelpDesk application.

RC: Case - WO Error

RC: Case - WO Error

This package is used to send work order error information to the CRM Call Center HelpDesk application.

RC: Case - WO Status Change

RC: Case - WO Status Change

This package is used to send work order status change information to the CRM Call Center HelpDesk application.

Packages and Templates for Communications and Energy Industries

This table describes packages and templates that you use with the Communications and Energy industry solutions:

Package

Templates

Description

COM_Account_Info

COM_Account_Info

Agents manually apply this package to send account information to a customer.

COM_Bill

COM_Bill

Agents manually apply this package to send bill information to a customer.

Packages and Templates for SAP and SmartViews

This table describes packages and templates that you use with SAP and SmartViews:

Package

Templates

Description

Account Plan Executive Report

Account Plan Executive Report

Use this package to send details of an account plan, which includes plan header information, objectives, goals, and team members.

Click to jump to parent topicDefining Term Groups and Subtemplates

This section discusses how to:

Click to jump to top of pageClick to jump to parent topicPages Used to Define Term Groups and Subtemplates

Page Name

Definition Name

Navigation

Usage

Term Group

RBC_DEFINE_TKNGRP

Set Up CRM, Common Definitions, Correspondence, Term Group, Term Group

Define groups of terms that are used together.

Subtemplate

RBC_DEFINE_SUBTMPL

Set Up CRM, Common Definitions, Correspondence, Subtemplate, Subtemplate

Define a reusable block of text that can be inserted into templates.

Click to jump to top of pageClick to jump to parent topicDefining Term Groups

To define term groups, use the Term Group (RBC_DEFINE_TKNGRP) component.

Access the Term Group page (Set Up CRM, Common Definitions, Correspondence, Term Group, Term Group).

Term Group Details

Implementation Name

Select the implementation code that is used to resolve terms in the group. You can select an implementation that returns a rowset alone.

Resolution Method

Select from the following values: PS Query, Application Class, SQL Object, Record.Field, Audience Select SQL Object and Audience Select Record.Field.

When you select a resolution method, the appropriate additional fields appear. Use the Register Method page to set up resolution methods.

When you prompt for terms to include in this group, your choices are limited to terms that meet the resolution method that you entered.

Uniform Column Width

Select to place the term data in a table where all the columns share the same width. Enter the width value (in pixels) in the Column Width field that appears. If you clear this field, you can enter the width value for each term.

Term List

The table formatting options in the term list are applied when you use the term group.term construct text templates. In RTF files, the formatting from the file takes precedence; template authors are responsible for this formatting.

Name

Select a term to include in the term group. The system displays the term name in this field.

You can select terms that have the same implementation as the term group. A term needs to be part of a term group for correspondence management to present multiple rows.

Column Heading

Enter the column label for the table's header row. If you do not enter labels for any of the columns, the system will not insert a header row in the table.

Width

Enter the width of the column heading in pixels.

Click to jump to top of pageClick to jump to parent topicDefining Subtemplates

To define subtemplates, use the Subtemplate (RBC_DEFINE_SUBTMPL) component.

Access the Subtemplate page (Set Up CRM, Common Definitions, Correspondence, Subtemplate, Subtemplate).

Preferred Name

Enter a user friendly name for the subtemplate that you create.

When you add this subtemplate to a template, this name is used (wrapped in double angle brackets, the default XML term tags) to represent the subtemplate.

Is the element body repeated?

Select this check box if the subtemplate has terms that can return multiple values—that is, if the content from the subtemplate might be rendered multiple times.

For example, if you have separate order-related templates for orders, quotes, and service management, you might put the content for line items into a subtemplate that is then included in different parent templates. Because there can be multiple line items in an order, you would need to select this check box for that subtemplate.

Subtemplate Content

Enter the full text of the subtemplate. The subtemplate can include a mix of text and terms, including term references from term groups.

Always be conscious of the contexts from which this subtemplate is used, and make sure to use only terms that can be resolved from that context.

Select Term

Click to search for terms to be inserted to the subtemplate using the subject area folder structure. Clicking a term adds it at the end of the subtemplate; the system automatically wraps the term with the default XML tag, {{ and }}.

Click to jump to parent topicDefining Templates

This section discusses how to:

Click to jump to top of pageClick to jump to parent topicPages Used to Define Templates

Page Name

Definition Name

Navigation

Usage

Template

RBC_DEFINE_TEMPLAT

Set Up CRM, Common Definitions, Correspondence, Template, Template

Define a template by creating or uploading template files and enabling terms.

Create HTML Template

RBC_ILAYOUT_SEC0

Click the Create a HTML Template button on the Template page.

Define an internal HTML template.

Term Selection

RBC_TMPL_CONTENT

Click the Add Terms button on the Template page.

Select terms, term groups, and subtemplates to be referenced in a template.

Clone Template

RBC_CLON_TMPLT_SEC

Click the Clone Template button on the Template page.

Create a new template definition by cloning an existing one.

Click to jump to top of pageClick to jump to parent topicCreating Template Definitions

To create template definitions, use the Template (RBC_DEFINE_TEMPLAT) component.

Access the Template page (Set Up CRM, Common Definitions, Correspondence, Template, Template).

Template Details

Status

Select Active or Inactive. Only active templates can be added to packages. If you deactivate a template that already belongs to a package, it is ignored when the package is applied.

Language

Select the language for the template. Template packages are language-specific, and when you add templates to a package, you can select only templates with the same language code as the package.

Valid From and Valid Through

Enter a date range when the template is available. This enables you to make a template available during a specific time period without having to modify the template status at the beginning and end of the time period. For example, a template that describes a particular offer may be valid only for a limited time.

When you add templates to a package, you can select only templates that are valid for the entire time the package is valid.

Security

Select Shared to make this template available to all users. Select My Use Only to make the template available only to its creator. When accessing the Template page, users see only shared templates and their own templates.

Create Package

Select this check box to enable the system to create a template package for this template after you save. Only templates that are part of a package are available to end users. This is the most efficient way to create a single-template package.

Saving the template for the first time after selecting this check box creates the package definitions and opens a new browser window to display the newly created package. Be sure to define usages for the package; packages without usages are not available to end users.

Template Files

File Name

Displays the name of the external template file or the internal text template that contains the content for this template definition. The external template files should be either in text or rich text format. The MicroSoft word documents have to be stored in rich text format before they can be uploaded to the FTP server. The file name is a link; click the link to view the template content and, if the template file is an internal text template, to modify its content. (To modify an external template file, click the Replace button.)

Channel

Select Email, Print, or All to indicate the channels for which the template file is valid. If you have a template file that is valid for all channels, you cannot have any other template files in this template definition. Otherwise, you can have one email template file, one print template file, or one of each. Note that internal HTML template files are only used for the email channel.

Click the Replace button to upload a new external template file to replace an existing external template file.

Click the Remove button to remove the template file (internal or external) from the template definition.

Upload a New File

Click to add a new external template file to the template definition. You are prompted to select the file and upload it. The location of the uploaded file depends on the template file's URL that you enter on the Correspondence Management Installation Setup page.

Create a HTML Template

Click to access the Create HTML Template page, where you define a new internal HTML template for this template definition.

Enable Terms

Type and Name

List the terms, term groups, and subtemplates that are used in the template files. The system automatically creates entries for term objects that are referenced in internal text templates and external .txt files, but it cannot parse external .dot files, so you must manually create entries for those terms (unless they are also used in another template that was parsed).

Required

Select to indicate that the correspondence should not be delivered if the term is not resolved or if it returns a null value.

Cache

Select to cache term values during merge processing. Caching improves performance.

Click the Remove button to remove a term object from the Enable Terms grid.

Add Terms

Click to access the Term Look page, where you can add terms to and remove terms from the Enable Terms grid.

Additional Element for Cloning Templates

Clone Template

Click to access the Clone Template page, where you can create a new template based on the current one.

Click to jump to top of pageClick to jump to parent topicDefining Internal HTML Templates

Access the Create HTML Template page (click the Create a HTML Template button on the Template page).

Template

Template Name

Enter a name that identifies the template when you see it listed in a template definition or a correspondence request.

Email Subject

Enter the subject text to be used when this template is the first template in the first package of a correspondence request. This subject cannot be modified for correspondence that is sent from the Correspondence Request page, but it can be modified after being applied within the Outbound Notification page.

Body

Enter the template content using a mix of static text, terms (including term group.term references), and subtemplates. The text formatting buttons above the body area may be used to adjust the appearance of the text as desired.

Import HTML

Specify an external HTML file to be imported into the current template content.

OK

Click to save the internal HTML template, add it to the template definition, and return to the Template page.

Additional Elements for Term Selection

Insert Dynamic Content

To help you insert terms into the template, click the Insert Dynamic Content button to display a list of available terms. Click a term to insert it at the end of the subtemplate content. The system formats the term with the appropriate begin and end tags.

On the Term Selection page you can either browse for terms based on subject area or search for a particular term.

Only terms that are created in the same base language as this new template are available for selection. In other words, if your base language is not English, you cannot see any terms that are added by users whose base language is English.

Click to jump to top of pageClick to jump to parent topicEnabling Terms for a Template

Access the Term Selection page (click the Add Terms button on the Template page).

The Terms Selection page is displayed in either browse mode or search mode. In browse mode, select terms by subject area.

Term Selection in Search Mode

In addition to finding terms from the subject area, you can also search for terms in the search mode using these search criteria:

Term Name

Enter text to limit the search to term objects that begin with that text.

Term Type

Select the type of term object to search for: Constantor Variable.

Configurable

Select whether or not the term object to search for will be configurable.

Data Type

Select the data type to search for: Date, Datetime, Number, Other, Record, Rowset, String, or Time.

Term Label

Enter text to limit the search to term labels that begin with that text.

Status

Select the data type to search for: Active, In Design, or Inactive.

Implementation Name

Enter text to limit the search to implementation names that begin with that text.

Search

Click to display a list of Term objects of the type that you selected that begin with the text that you entered in the Name field.

Click to jump to top of pageClick to jump to parent topicCloning a Template

Access the Clone Template page (click the Clone Template button on the Template page).

New Template Name

Enter a name for the template to be created, and then click the OK button.

Click to jump to parent topicValidating Terms and Templates

This section discusses how to validate terms and templates.

Click to jump to top of pageClick to jump to parent topicPage Used to Validate Terms and Templates

Page Name

Definition Name

Navigation

Usage

Validate Terms and Templates

RBC_TEST_TERM

Set Up CRM, Common Definitions, Correspondence, Validate Terms and Templates, Validate Terms and Templates

Test term and template resolution.

Click to jump to top of pageClick to jump to parent topicValidating Terms and Templates

Access the Validate Terms and Templates page (Set Up CRM, Common Definitions, Correspondence, Validate Terms and Templates, Validate Terms and Templates).

Term Syntax Information

Term Start Tag and Term End Tag

Displays the term start and end tags that you selected on the Correspondence Management Installation Setup page. The default is double curly brackets: {{ }}.

Term Syntax

Displays instructional text explaining how to reference terms that represent level zero and level one data.

Context Selection

Context Name

Select the component to use as the template context during the validation.

Template & Terms Information

Language, Template, and Channel

To validate a template, select the template definition, its channel (Email, Print, or All), and its language.

Note. Email, Print, and All refer to the Email, Print, or All channel specified in the template's definition. Thus, selecting All does not validate any files associated with the Email or Print channel, but only those specified with the All channel.

Subtemplate

To validate a subtemplate, select the subtemplate to validate. Alternatively, you can enter terms directly into the long text field that appears below the Subtemplate field. Be sure to wrap terms in the appropriate start and end tags.

Resolve

Click to resolve the template, subtemplate, or free-form text that you entered.

Additional Elements for Validation

At the bottom of the Validate Terms and Templates page, the system displays the results of the term validation process. Messages show each term's resolution method, display the value if the term was resolvable, and display an error message if it was not.

Click to jump to parent topicDefining Template Categories and Types

This section discusses how to:

Click to jump to top of pageClick to jump to parent topicPages Used to Define Template Categories and Types

Page Name

Definition Name

Navigation

Usage

Categories & Types

RBC_CATEGORY_SETUP

Set Up CRM, Common Definitions, Categories & Types, Categories & Types

Define categories to be used for grouping similar templates and refining template search results in the email workspace.

Associate Types

RBC_CAT_TYPE_SEC

Click the Types link of any category on the Categories page.

Associate categories with types to subcategorize templates.

Click to jump to top of pageClick to jump to parent topicDefining Categories

To define categories, use the Categories & Types (RBC_CATEGORY_SETUP) component.

Access the Categories & Types page (Set Up CRM, Common Definitions, Categories & Types, Categories & Types).

Active

Select to activate the corresponding category and be able to use it when defining template packages and searching for templates. Clear the check box if you want to deactivate the category and its established relationship with its types.

Category Name

Enter the name of the category. If you delete the category, a warning message appears and advises that you inactivate rather than delete the category because removing it may cause unexpected behavior to applications that use it.

Types

Click to access the Category/Type association page, in which you associate the category with types. A category can contain one or more types; types subcategorize a category.

ERMS Related

Select to make the corresponding category available in the email workspace to classify incoming email. Agents can manually select an appropriate category for emails as necessary. The email workspace recommends actions and correspondence templates to use for email replies based on the email category.

Click to jump to top of pageClick to jump to parent topicAssociating Categories With Types

Access the Associate Types page (click the Types link of any category on the Categories page).

Type Name

Enter a type for the selected category. Type names must be unique. If you delete a type from a category, the deletion pertains to that category only.

Click to jump to parent topicDefining Template Packages

This section discusses how to:

Click to jump to top of pageClick to jump to parent topicPages Used to Define Template Packages

Page Name

Definition Name

Navigation

Usage

Usage

RBC_DEFINE_USAGE

Set Up CRM, Common Definitions, Correspondence, Usage, Usage

Define groups of components from which templates can be used.

Template Package

RBC_DEFINE_PACKAGE

Set Up CRM, Common Definitions, Correspondence, Template Package, Template Package

Define groups of templates and where they can be used.

Clone Package

RBC_CLONE_PKG_SEC

Click the Clone Package button on the Template Package page.

Create a new template package by cloning an existing one.

Click to jump to top of pageClick to jump to parent topicDefining Package Usages

To define package usages, use the Usage (RBC_DEFINE_USAGE) component.

Access the Usage page (Set Up CRM, Common Definitions, Correspondence, Usage, Usage).

Description

Enter a description, which appears in the drop-down list box where you assign usages to specific template packages.

Market, Component Name, and Display Template Family Code

List all the components where this usage is valid. To uniquely identify a component, enter both its market and its object name. When you enter this information, the system displays the corresponding search record name. Enter a display template family code if it is used to identify the component (for example, the Case component), and set the value of the market to GBL.

Click to jump to top of pageClick to jump to parent topicDefining Packages

To define packages, use the Template Package (RBC_DEFINE_PACKAGE) component.

Access the Template Package page (Set Up CRM, Common Definitions, Correspondence, Template Package, Template Package).

Package Details

The fields in this group box are similar to fields on the Template page.

Status

Select Active or Inactive. Only active template packages are available to end users.

Language

Select the language for the package. When you add templates to a package, you can select only templates for the selected language.

When a user selects a package, the system limits the package prompt based on the language that the user selects.

Security

Select Shared to make this package available to all users. Select My Use Only to make the package available only to its creator.

Valid From and Valid Through

Enter a date range when the template package is available.

When you add templates to the package, you can select only templates that are valid for the entire time the package is valid.

Workflow Template

Select to specify the correspondence template package to be used only by AAF to send email notifications. Templates of this type of package can contain terms that are resolved into data coming from the component buffer, which doesn't apply to manual notifications or correspondence that are sent from CRM transactions.

Usages

Usage

Select the usage associated with the components from which this package can be used.

Add All Usages

Click to add all usages to this package. Even if a package is not valid in all usages, adding all usages and then deleting specific ones facilitates data entry for packages that are valid for most usages.

Categories & Types

Add/Mod associated categories (add/modify associated categories)

Click to access the Select Categories page, where you can add or remove categories that are associated with the selected package.

Types

Click the link to modify the association of the category with its types. The link appears when you select at least one category.

Product & Product Groups

Add/Modify Product Groups

Click to access the Select Product Groups page, where you add or remove product groups that are associated with the selected package.

Products

Click the link to modify the association of the product group with its products. The link appears when you select at least one product group. You establish the relationship between product groups and products using the Product Definition component.

Package Contents

Cover Letter/Email Body

Select the template definition for the package's cover letter.

For the email channel, be sure that the cover letter is an internal HTML (or text) template. The template's subject becomes the email subject, and the template's body text is inserted directly into the email body.

When defining packages for use on the Send Notification page or the Outbound Email page, the cover letter must be the only template in the package.

Document

Select to indicate the template package as a document. An example of a document can be a troubleshooting guide or product brochure that can be sent to customers as email response. In the email workspace, users can search for documents, in addition to solutions, that help address the issue that is stated in the email and include them in the email reply that they send to customers.

To make a document available for use in the email workspace, make sure to add the ERMS Response usage to the template package.

PDF Options

Select Do Not Convert to PDF or Use PDF Format. This setting applies to the Correspondence Request page, but not to manual notifications. This setting applies to print correspondence and to email correspondence that still uses internal text templates. This setting is ignored when using email correspondence based on internal HTML templates. For email correspondence using internal text templates, this setting controls the format of the attachments in the email as well as the format used to store the merged correspondence in the PeopleSoft system.

This field appears next to each file in the package, including the cover letter template, other templates, and static files. However, if the cover letter's template for the email channel is an internal text template, and if this is the first package in the correspondence request, the text of the internal text template becomes the email body text and is not converted to PDF.

If you do not permit users to set PDF options at the package level, the field is not editable and the value is determined by the settings in the Correspondence Management Installation Setup page.

Templates

Select the template definitions to be included in the package, and enter sequence numbers to order templates within the package.

Attached Files

This grid lists the static files (not templates) to be included in the package. The file name is a link that you can click to view the file content. Use the Upload a New File button to add items to this grid, the Replace button to substitute a new static file for an existing one, and the Remove button to remove an item from the grid.

Packages that include static files are not available from manual notifications, only from the Correspondence Request page.

Additional Element for Cloning Templates

Clone

Click to access the Clone Package page, where you can create a new template based on the current one.

See Also

Solution and Document Search

Click to jump to top of pageClick to jump to parent topicCloning a Template Package

Access the Clone Package page (click the Clone Package button on the Template Package page).

New Package Name

Enter a name for the package to be created, and then click the OK button.