Fun Series December - Salesforce - Survey App Challenge

Key Information

Register
Submit
The challenge is finished.

Challenge Overview

Project Overview

We have launched a new Fun Challenge series to help our members learn new skills/technologies while getting used to the Topcoder platform. This challenge is about Salesforce. In this challenge, we will explore saving user data using Apex controllers.

Important :
This is a fun and learning challenge. No prizes will be awarded for completing the challenge.

Business Requirements

"Fun&Learn" company wants to develop a survey solution. Fun&Learn has identified Salesforce.com as their desired platform to implement the solution. We will help them build the survey application, across a series of challenges. In this month's challenge, we will be recording the contact's responses in a custom object. We will try to integrate , what we have built so far.

Help Documentation & Tutorials

  1. https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/
  2. https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/

Technical Requirements

You need a Salesforce.com Developer account to complete this challenge. You can sign up a free account here
A survey is a collection of Questions. A question can be part of multiple surveys. To keep things simple, we will assume all questions are of Free Text.

In this challenge, we will allow a contact to record his responses for a survey, via a Force.com site.

In Previous challenges, we built the object schema. If you haven't participated in previous challenges, please use the package to install the objects and workflows

The new database schema.

This Challenge Requirements

  1. Create a object Survey Response to store the Survey Response.

  2. The survey response has a master detail relationship with Survey

  3. Create 2 lookup fields on Survey Response object.

    1. The first field will be a Lookup Field to Contact object (Field Label : Contact)

    2. The second field will be a Lookup field to Question object (Field Label : Question)

  4. Create a new field Response of Long Text Area (32k) to store the response.

The workflow of sending Survey to a contact

The workflow was built in the previous challenge. If you didn't participate in the previous challenge, please look for the workflow in the package.

  1. Internal user selects a survey on a Contact record

  2. The workflow triggers an email to contact email address along with link. (The workflow needs to be modified to pass contact Id as well now)

    1. an example Site link could be http://myforce.com.site/SurveyResponse?id=00930393033&contactId=003AAABB where 00930393033 is surveyId

  3. The end user can click on the link in the email and land on the Force.com Site.

  4. The contact will fill the fields and the data will be captured in the new Survey Response object.

The sample Visualforce page would like this



Final Submission Guidelines

Please provide the url to your force.com site along with a valid contactId and surveyId.

Important :
This is a fun and learning challenge. No prizes will be awarded for completing the challenge.

 

ELIGIBLE EVENTS:

2016 TopCoder(R) Open

REVIEW STYLE:

Final Review:

Community Review Board

Approval:

User Sign-Off

SHARE:

ID: 30052310