Updating to the threading mechanism available in the 8.6 version
To help track emails from customers and other stakeholders in separate threads, starting from Pega Platform version 8.6, the system includes a more secure threading mechanism. If you update to Pega Platform version 8.6 and in the previous version of the system you configured an Email channel, perform additional configuration steps in order to use the built-in secure threading mechanism with your email bot.
To ensure that you use the new secure threading mechanism for your email bot, perform the following actions:
- Update the service email rule for your email bot so that the system uses an initial acknowledgment email.
- Update the pySetEmailBodyReplyTemplate data transform rule so that the system uses an email reply template.
- Switch to Dev Studio.
- In the header of Dev Studio, click the name of the application, and then click Channels and interfaces.
- In the Current channel interfaces section, click the icon that represents your existing Email channel.
- In the Email handling section, in the Email accounts list, write down the name of the email listener rule that the system uses for the Email channel.
- In the header of Dev Studio, click .
- In the Listener name column, click the name of the email listener that the system uses for your Email channel. This is the name that you made a note of in step 4.
- In the email listener rule, in the Listener properties section, edit the rule displayed in the Service method (text/XML only) field.
- In the service email rule, click the Response tab.
- Expand the first Message contents section, and then in
the Message data section for the email body, in the
Map from Key field, edit the email correspondence
rule for your email bot.In Pega Platform version 8.6 and later, by default the system uses the pyEmailAcknowledgement correspondence rule for this purpose.
- If your application uses a different email correspondence rule from
pyEmailAcknowledgement, in the email correspondence
rule, on the Corr tab, in the text field, reference one
of the built-in acknowledgment templates:
pyEmailAckTemplate_Clear,
pyEmailAckTemplate_Cobalt,
pyEmailAckTemplate_Classic, or a custom template that
also uses the pyEmailFormat_<template_name> rule as
the wrapper with the HTML tags including the embedded security tag.
By referencing an acknowledgment template that includes the pyEmailFormat_<template_name> rule, you ensure that you use the secure built-in threading mechanism. The system includes the following tag in the HTML source for this rule:
<pega:include name="pyEmailThreadIdentification" type="Rule-HTML-Paragraph"></pega:include>
- Save your changes by performing one of the following actions:
- To save the rule that belongs to a locked ruleset to an isolated sandbox
so that you can test your changes, click Private
edit.
For more information, see Performing a private edit.
- To save the rule to a ruleset, click Save as.
- To save the rule that belongs to a locked ruleset to an isolated sandbox
so that you can test your changes, click Private
edit.
- In the navigation pane of Dev Studio, click App, and then search for the Work-Channel-Triage class.
- Expand the section for the Work-Channel-Triage class, and then click pySetEmailBodyReplyTemplate.
- In the pySetEmailBodyReplyTemplate data transform rule,
set the parameter reply template target to one of the new built-in email reply
templates: pyEmailReplyTemplate_Clear,
pyEmailReplyTemplate_Cobalt, or
pyEmailReplyTemplate_Classic.You can also use your own custom email reply template, provided that it is based on one of the three built-in templates. For more information, see Creating outbound email templates.
- Save your changes by performing one of the following actions:
- To save the rule that belongs to a locked ruleset to an isolated sandbox
so that you can test your changes, click Private
edit.
For more information, see Performing a private edit.
- To save the rule to a ruleset, click Save as.
- To save the rule that belongs to a locked ruleset to an isolated sandbox
so that you can test your changes, click Private
edit.
- Switch back to App Studio.
Previous topic Database schema for email bot tables Next topic Creating an Email channel from an existing channel