Exercise 1: Customer Anniversary Email

In this exercise, store the records of a congratulatory email and a Premium Membership offer sent to the customer on the customer's anniversary.

Requirements

For brevity reasons, and to stay focused on the intent of the exercise the actual emails are not sent. There will be a delay of two (2) minutes between both emails. The relevant email Activity records will only be added in the “UserName_Acc_Activities” entity. However, all the necessary events will be covered in this exercise.

  1. Create a Flow component that will generate the required emails.

  2. Create a Flow that reflects the sequence of activities involved in the exercise.

  3. This Flow component will contain mapped fields, which are input fields so the user can enter the details needed so it will be used during the execution of the Flow.

  4. This Flow component will be placed twice in the Flow, each for a different email purpose. The position reflects the activity in the Flow.

    1. In the first execution of the Flow component, it will send the customer anniversary email (The first email record will be congratulating the customer on the anniversary.) The details of the email needed will be configured through the mapped fields. The information of these fields will be used in the entity record of “UserName_Acc_Activities”.

    2. In the second execution, (the second email record will offer the customer a 30-day trial of Premium Subscription.) The offer details are added through mapped fields. The information of these mapped fields will be used in the entity record of “UserName_Acc_Activities”.

  5. There will be a delay of two (2) minutes (instead of 2 days) after the Flow component is executed the first time.

  6. The Flow component will load the customer entity's record from “UserName_Acc_customers” to find the customer's email.

  7. After the Flow component is placed in the Flow and configured, the Flow component events will be used to link the next Flow component in sequence. This forms a series of activities that reflects the business process.

  8. When the Flow is executed, based on the current date and the values provided by the user in the field mapping of the Flow component, an activity record will be created in the entity “UserName_Acc_Activities”.

Solution

This solution comprises the following steps:

  • Step 1: Creating a Flow component, which the user will define with details to create an email record and trigger relevant events.

  • Step 2: Create a Flow defining a target entity to store the email records. The Flow component will be placed twice In the Flow:

    • The first Flow component sends the anniversary email.

    • A delay of two (2) minutes is defined after sending the first mail, which means a Delay Flow component will be placed after the first Flow component “Sent” event with delay duration defined as two (2) minutes.

    • The second Flow component sends a free Premium Membership offer email.

  • Step 3: Trigger the Flow in a Process to store the created records in the target entity.

Last updated