Documente Academic
Documente Profesional
Documente Cultură
Scenario:
Universal Containers would like to add a visual indicator of the Rating on a job application. Job
Applications with a high rating should display a green flag; a medium rating should display a yellow
flag; and a low rating should display a red flag. Universal Containers can take advantage of a number
of sample images available on the Salesforce servers.
Tasks:
Create a new formula field to show a red, yellow, or green flag on a job application record,
depending on the Average Review Score.
Add the new Rating field to the Job Application related list on the Position page layout.
Time:10 minutes
Instructions:
c. Cl i ck Next
d. Cli ck Next
ii. C l i c k Ch e c k S y n t a x
e. Cl i ck Next
g. Click Save
2. Test the customization by looking at a job application record to see the new Rating field
Click the Job Applications tab
i. View: All
G ii Click Go!
ii. Add the new Rating field to the Job Application related list on the Position page
layout
iv. Scroll down to the Page Layouts related list, then click the Edit link next to the Technical
Position
Page Layout
vi. Move Rating from the Available Fields column to the Selected Fields column
vii. Apply column information to other page layouts: Select All: checked
f
Exercise 1-2: Creating Formula Fields to Display Hyperlinks
Goal:
Build a formula field that displays a hyperlink.
Scenario:
Universal Containers would like to be able to click a link on the candidate object to see a photo of the candidate. The
images will be stored in the Documents tab, so the company will need to create a field to capture the ID, a field to
create the URL, and a field with a link that users can click to see the picture, as well as embedding the image into
the page.
Tasks:
Create a field for the Picture ID.
Populate a candidate record's Picture ID field, then click the Picture Link to view the picture.
Time: 15 minutes
Instructions:
1, Create a new field for the image ID.
a. Click Your Name I Setup I Create I Objects I Candidate
b. Scroll down to the Custom Fields & Relationships related list and click New
i. Data Type: Text
c. Click Next
iii. Field Label: Picture ID
iv. Length: 18
v. Field Name: Picture ID
d. Click Next
e. Click Next
N Next
g. Click
F i e l d L a b e l : Picture URL
0. Cl i ck Check Syntax
Click Next
Make the field visible to all profiles, click Next
i.Add the field to the Candidate Layout
0. Cl i ck Save & New
vi. D at a Ty p e: F o r m u l a
I. Click Next
I. Field Label: P i c t u r e L i n k
Formula: IF ( IS B LA N K ( P i c t u r e ID c )
HYPERLINK ( iservlet/servlet .FileDownload? file= " &
P i c t u r e I D c "candidate P i c t u r e " ) )
0. Cl i ck Check Syntax
h
n. Make the field visible to all profiles, click Next
i. Add the field to the Candidate Layout
P Field Label: P i c t u r e
P Field Name: P i c t u r e
0. Cl i ck Check Syntax
r. Click Next
s. Make the field visible to all profiles, click Next
i. Add the field to the Candidate Layout
t. Click Save
2. Populate a candidate record's Picture ID field, then click the Picture Link to view the picture
a. Click the Documents tab
i. Select the folder, Public Photos
0. Click on one of the documents listed, then copy the last 15 digits of the URL
for that document (everything after .com/)
v. C l i c k Save
vi. Note how the Picture URL is populated, then click on the Candidate
Picture link
Exercise 2-1: Creating Validation Rules
Goal:
C
Create validation rules to enforce business requirements.
S
Scenario:
Universal Containers (UC) wants reviewers to always provide specific details if they are
recommending someone for hire. Additionally, UC employees should not be able to save a
position record unless the Hiring Manager field is filled out.
T
Tasks:
Add a validation rule that requires people to fill in the Reason Recommended box if they check
Recommend for Hire. Add a validation rule that requires that all positions must have a Hiring
M
Manager listed.
Time: 10 minutes
Instructions
Active: Checked
C. Click Save
d . Create new a Position and a new Review record to test these validation rules
Exercise 2-2: Building Validation Rules to Enforce Conditionally Required Fields
Goal:
Build a validation rule that prevents users from saving Temp positions with a blank
Duration.
S
Scenario:
Universal Containers would like to enforce its policies around Temporary positions. The
Duration field on a Temp position should not be blank. It should contain a value between 1 and
365.
T
Tasks:
B a new validation rule that ensures that these policies are followed.
Build
Time: 1 0 mi n u t e s
Instructions:
b. Scroll down to the Validation Rules related list and click New
x. Active: Checked
c. Click Save
x. Click Ne w
xi. C l i ck S a v e
Click New
c . R e c o r d T yp e of n e w r e c o r d : N o n T e c h n i c a l P o s i t i o n s
-
d. Click Continue
A I. Title: Assistant to the Director of Support
H Priority: High
T Type: Temp
Status: New
V . Department: S u p p o r t
e. Click Save
f . A f t e r r e c e i v i n g t h e e r r o r : " T e m p o r a r y P o s i t i o n s r e q u i r e a v a l u e f o r d u r a t io n be t w e e n
and 365 days , " enter the Duration as 364, then click Save again
4. Check the Debug Logs
xiii. Click the View link next to the first listing (at the bottom of the list) for Admin User to view
xiv. Click the View link next to the second listing for Admin User to view the logs
i. Note the result: VALIDATION_PASS
G
Goal:
S
Scenario:
Universal Containers would like to make sure that when candidates are entered, the zip code is
entered in the correct format.
T
Tasks:
Create a validation rule on candidates that requires that zip codes be entered in a valid 5-digit or 9-
digit format.
T
Time:
10 minutes
Instructions:
Create a validation rule on candidates that requires that zip codes be entered in a valid 5-digit or 9-
digit format.
b. Scroll down to the Validation Rules related list and click New
i. Rule Name: Zip code must be Valid US Postal Code
Active: Checked
c. Click Save
2. Test the validation rule on an existing candidate
9999 format," update the zip code to 94105 and click Save
Goal:G
S Scenario:
I Universal Containers would like to ensure that when a zip code is entered, it matches the state that's
entered. For example, a candidate with a California zip code should not have a state of New York.
T
Tasks:
Create a validation rule that checks the zip code entered against a table to validate that the zip code
and state match.
T
Time:
15 minutes
Instructions:
1. Create an object on which to store zip code data
Xi. Launch New Custom Tab Wizard after saving this custom object: Checked
b. Click Save
xv. Use the lookup icon to select the Map tab style
xvi. C l i c k Next
xvii. Make the tab Default On for all Profiles, then click Next
xix. C l i c k Save
b, Click Next
2 v. Length: 2
c. Click Next
d. Click Next
i. Add the field to the zip code layout
f. Click Next
xxv. Fi el d Label : Ci ty
xxvi. Length: 80
g. Click Next
i. Make the field visible to all profiles
h. Click Next
i. Add the field to the zip code layout
i. Click Save
j. Modify the Zip Code page layout so that the fields are displayed in a logical order
xx. Under the Page Layout related list, click the Edit link next to Zip Code Layout
(1) Arrange the fields in the left hand column of the page layout so that City is on top, then
State, then Zip Code
xxi. Click S a v e
3
3. Create new zip code records
Click N e w
i. Enter the Zip Code, City and State for any location.
S Cli ck S a v e
Repeat to create 3 to 5 zip code records (to look up Zip Codes for any
city go to