ico-arrow-big-left

Send Discussion Replies via Email

Key Information

Register
Submit
The challenge is finished.
Show Deadlines

Challenge Overview

When a new message is posted to the challenge discussion board, an email is sent out to everyone participating on the challenge. Implement the functionality for a user to reply to this email using an Apex Email Service which will insert the record in the Challenge_Comment__c object below for the correct Member, Challenge and Reply_To, etc. You do not have to actually send out the email.

The key to the service is to associate the incoming email with an existing Challenge_Comment__c record that the person is replying to (this creates a discussion thread). Perhaps putting the name of the original comment (e.g., CC-11532) in the subject or somewhere in the body? You may have to change the format of the email that goes out to accomidate your code.

Create the following Challenge_Comment__c custom object (disregard the UserProfileFeedId field as not needed):

User-added image


Create the following Mail__c custom object:

User-added image

When a new record is inserted into the Challenge_Comment__c custom object, an "after insert" trigger fires (the actual code is attached in the assets section) to add the record to the Mail__c custom object. Another service will eventually pick up this record in the Mail__c object and send it out via email.

Must have 90%+ test coverage. Be clear and concise on how to setup this service and any changes to existing functionality.

Payments

Topcoder will compensate members in accordance with our standard payment policies, unless otherwise specified in this challenge. For information on payment policies, setting up your profile to receive payments, and general payment questions, please refer to ‌Payment Policies and Instructions.

REVIEW STYLE:

Final Review:

Community Review Board
?

Approval:

User Sign-Off
?

ID: 30038397