You are on page 1of 16

boston new york zurich london amsterdam new mumbai www.innoveer.

amsterdam new mumbai www.innoveer.com boston new york london new mumbai www.innoveer.com
Connect. Win. Grow.
Developer Certification Study Group
Business Logic

Jon Maynard
2
My Study
Suggested Web Courses from latest Study Guide
DeveloperSummaryX.pdf
Good Summary
Online book Force.com Developer Certification Handbook (DEV401)
http://my.safaribooksonline.com/book/-/9781849683487/exam-guide-and-practice-
paper/ch08lvl1sec02
Good questions and answers (others arent always correct)
A comprehensive handbook to guide Force.com developers through important
fundamentals and prepare them for the DEV401 exam.

Supplemental
Some sections of Force.com Fundamentals Workbook


Me
Passed Dev Cert 2 weeks ago.
Have 6 months SFDC experience
Admin and Service Certified
1 recent Service Cloud Project, 1 Cloud Express
3
Contents
Formulas, Validation rules and Workflow Rules
Scenarios for the Force.com features
Debugging and monitoring
Approval Processes
Extending business logic

4
Formulas
Custom Formula Fields
E.g. Account Name + Account Number
Types
Cross Object Formula fields

Rollup Summary fields
COUNT
SUM
MIN
MAX




5
Formula Field Sample Question
Using a formula field how would a developer calculate
the number of days since a record has been created?
The CreatedDate field is a DateTime type field.

a. TODAY() DATEVALUE(CreatedDate)
b. NOW() DATEVALUE(CreatedDate)
c. TODAY() CreatedDate
d. CreatedDate TODAY()


(Answer is A)

6
Validation Rules
Preserve Data Quality

Why Used
When Executed

7
Workflow Rules
1. Evaluation Criteria (When Record is
Created/Updated)
2. Rule Criteria (Filter records)
Criteria
Formula
3. Actions (Do something)
1. Can Be Time-dependent

8
Functions
9
Approval Process
Refs
- Force.Com Fundamentals Workbook
- Salesforce Dev401 Slides- Screenshots

10
Workflow Actions - Sample Question
When a record has been rejected by all approvers,
Salesforce executes all final rejection actions. Which of
the following is NOT a possible final rejection action?

a. Lock the record from being edited
b. Send an e-mail to a designated recipient
c. Delete the record
d. Update a field on the record

(Answer is D)

11
Multiple Approvers - Sample Question
An organization has created a custom object to manage all job
positions. Using an approval process they have configured the
application to have the first step of the process require approvals
from three different hiring managers.
Select the two (2) possible approval choices based on multiple
approvers for an approval step.

a. Approve or reject based on the first response
b. Require unanimous approval from all selected approvers
c. Require majority approval from all selected approvers
d. Require x out of y approval from all selected approvers

(Answer is A and B)

12
Comparison with Workflow Rules
Workflow Rules

Approval Processes

Are triggered upon save. Are triggered only when a user clicks Submit for
Approval.
Consist of one set of criteria and actions Consist of Multiple Steps.
Can be modified and deleted.
Have some attributes that cant be modified (processes
must be deactivated before they can be deleted).

Have entry criteria, step criteria, and step actions.
Have initial submission actions, rejection and approval
actions, and actions for each step.
13
Debugging
Setup Audit Trail
Debug Log
Developer Console

14
Extending Business Logic
Apex


An organization needs the ability to view the value of the opportunity stage field
on an opportunity product related list. Please choose the declarative method of
fulfilling the requirement.

a. Create an Apex method to replicate the value on the child object, and set the field level
security to read-only and expose the new field on the opportunity product related list
b. Create a cross object formula field on the opportunity product object and expose the formula
field on the opportunity product related list
c. Create a validation rule on the opportunity product object
d. Create a new picklist field called stage on the opportunity product object, and expose the field
on the opportunity product related list

(Answer is B)


15
Apex Sample Question
An organization has decided to manage hiring and positions. A custom
object has been created to manage all new job positions. All positions
below $50,000 must be approved by the hiring manager, and positions
above $50,000 must be approved by the hiring manager and the regional
hiring manager. What would a developer use to declaratively fulfil the
requirement?

a. Apex code, to check the position's salary and assign the appropriate resource for
approval
b. Approval process
c. Validation rules
d. Dynamic routing approval


(Answer is B)


16
Dynamic Routing Approval

You might also like