Key Information

Register
Submit
The challenge is finished.

Challenge Overview

This is the 250 points Easy level problem of Topcoder Skill Builder Challenge: Salesforce Apex. For more challenge context info Register for the Host Competition before submitting a solution to this problem.

Problem Statement: Welcome emails

Due to the pandemic, DreamHouse has lost a lot of customers. To engage them back, you need to send a welcome email to all the customers (Contacts). You need to write an Apex class to address it.

Technology Stack

In all the three Skill Builder competitions, you need to develop the app by Visual Studio Code with Salesforce Extension Pack, and you need to create a Salesforce project by the Salesforce CLI. You cannot just write the code in the Developer Console of your Org.

All the code should be deployed to a Scratch Org, and you need to include the link to the Scratch Org, username and password in your submission.

You will need to install the DreamHouse app into your Scratch Org, and all the following development will be based on it.

What do you need to do?

Due to the pandemic, DreamHouse has lost a lot of customers. To engage them back, you need to send a welcome email to all the customers (Contacts). You need to write an Apex class to address it.

The Apex class name should be WelcomeEmailProcessor, it contains a single public static method send, which takes no arguments.

By calling the method, it will send the following content to the email address of each customer (Contact).

Hi <Customer Name>,

Hope you stay safe and healthy during the COVID-19.

Still looking for houses? We are launching a new site http://www.dreamhouseapp.io/ to help you explore the houses at home. If you have any questions, feel free to contact the broker: <Randomly show one broker name and phone number, e.g., Victor Ochoa: 617-244-3672>

Sincerely,
DreamHouse Realty
<The date of today>

You need to replace the placeholder with the actual value in the email template. You can use EmailManager.sendEmail to send the email.

Important things to note

  • You need to write down how to use Salesforce CLI to execute the Apex method for sending emails.
  • Configure the language of your Scratch Org to English if it is not.
  • The reviewer will log in to your Scratch Org and check.

Instructions:

  • We have prepared three problems: Easy, Medium, and Hard, which are worth 250, 500, 1000 points respectively. Points are based on the difficulty of the problem.
  • The competitions may or may not be related to each other.
  • The links to the problems/competitions are provided below.
  • Each problem has one single requirement to achieve. We will judge your submission based on the requirement being fulfilled in each problem, so as long as the requirements are met with minimal code quality, you would be rewarded with points for that particular problem.
  • Here is the leaderboard with individual problem score and total score across weeks is available.

Problems

  1. Easy: 250 Points :: Welcome emails
  2. Medium: 500 Points :: Corona Cases Email
  3. Hard: 1000 Points :: Web Service and Test Automation


Final Submission Guidelines

  • The source code of your Salesforce project.

  • Deployment guide and validation document. You need to include the link to the Scratch Org, username and password in the document, and mention how to execute the Apex method by Salesforce CLI.

  • A demo video to verify that your submission meets all the requirements (Optional).

ELIGIBLE EVENTS:

2021 Topcoder(R) Open

REVIEW STYLE:

Final Review:

Community Review Board

Approval:

User Sign-Off

SHARE:

ID: 30146322