Skip to main content

Sending automated emails

The Creative Content team wants to generate an email to confirm receipt of each content request through the Content Request Case Type. The email acts as validation for the requester that the team receives the request.

In the current workflow, this step is prone to errors. There are occasions when Ren's team neglects to send the email and instances when the email is duplicated. There are also inconsistencies in the timing of the email and the information that it contains.

For Ren, automating the requester confirmation email process improves the consistency of the process and saves considerable time and manual effort.

To facilitate the automated email correspondence, Ren considers three simple questions:

  1. Who is going to receive the email?
  2. What information will the email contain?
  3. When, during the Case Life Cycle, will the email be sent?

For Ren, the answers to each of the three questions are:

  1. The requester receives the email.
  2. The email contains the request type and Case ID.
  3. The email is sent as the first step in the Processing stage.

With these questions answered, Ren clicks the Processing stage's Send confirmation step to open the contextual properties pane.

Identifying the email recipient

To define the email recipient, Ren fills in the boxes associated with the Send To portion of the contextual properties pane.

Email correspondence can be sent to one of several categories including:

  • Email address: An email address can be entered manually.
  • Field: An application field such as Requester email can be used to send an email.
  • Participants: An email can be sent to one or more of the case’s stakeholders.

Ren defines the email recipient for his application by performing the following steps:

  1. In the navigation pane of App Studio, click Case types, and then click the Content Request Case Type.
  2. On the Processing stage, click the Send confirmation step.
  3. In the Step properties pane, in the Send to drop-down list, select Field.
  4. In the second drop-down list, select Requester email.
    Note: This email address is required as part of the Enter request details step.

Next, Ren defines the template for the email notification.

Defining the email template

For Ren, defining the email template begins by entering Content Request Confirmation in the Subject text box. This input is the subject line of the email.

Next, Ren composes his email correspondence template.

Ren incorporates two Pega data fields in his email correspondence template:

  • Request Type
  • Case ID

These fields reference data from the specific Case instance in the email that is generated.

To include these fields in the email template, Ren clicks the Insert Property icon on the email template menu bar.

In the following figure, click on the + icons to learn more about inserting property fields into the body of an email message:

Ren defines the email template by performing the following steps:

  1. In the Send confirmation contextual properties pane, in the Subject field, enter Content Request Confirmation.
  2. Click Compose.
  3. In the Compose message dialog box, enter the following body text:

    Thank you for submitting a request for a <<.RequestType>> to the Creative Content Team.  
    For your reference your Request ID is: <<.pyID>>

    We will notify you by email when your request is complete.

    Regards,

    The Creative Content Team

  4. Click Done.
  5. Click Save.

The following video details the process Ren uses to automate the Send confirmation step.

Note: The user interface depicted in the videos associated with this mission might differ slightly from your own due to alternate versions of the Pega Platform. This video has no audio and no closed captions.

As a result of Ren's work, each time a requester submits a new Content Request case, they automatically receive a confirmation email.

Check your knowledge with the following interaction:

In your environment

In your own Pega environment, duplicate the steps Ren uses to generate an automated email. You can recreate the Email Requestor notification that Ren uses or automate an email that is associated with your own process.


This Topic is available in the following Module:

If you are having problems with your training, please review the Pega Academy Support FAQs.

Did you find this content helpful?

Want to help us improve this content?

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

Pega Academy 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