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.

Reliability Rating and Bonus

For challenges that have a reliability bonus, the bonus depends on the reliability rating at the moment of registration for that project. A participant with no previous projects is considered to have no reliability rating, and therefore gets no bonus. Reliability bonus does not apply to Digital Run winnings. Since reliability rating is based on the past 15 projects, it can only have 15 discrete values.
Read more.

REVIEW STYLE:

Final Review:

Community Review Board
?

Approval:

User Sign-Off
?

CHALLENGE LINKS:

Review Scorecard

?