Study Group
Platform App Builder
Business Logic and Process Automation - Part 1
Formula Fields, Roll up Summary Fields, Validation Rules, Approval Processes
Vickie Jeffery & Adrienne Cutcliffe
Thank You Sponsors
Platinum Sponsor
Bronze Sponsors
Vickie Jeffery
Head of Technology
Ausure
Adrienne Cutcliffe
Business Solutions Consultant
Traction on Demand
Agenda
Want swag?
Tweet your certification pass
Mention @Archladies
Share your certification pass in our community group
Let’s Get Started
From the Exam Guide
Business Logic and Process Automation - Part 1
Formula Fields - What are they?
Formula Fields - Limitations
Formula Fields - Creating a Formula Field
Creating a Formula Field
Formula Window
Description and Help Text
Formula Function Helper
Blank Handling
Check Syntax Button
Formula Fields - Return Types
Checkbox | Return a boolean value - True = Checked, False = Not Checked |
Currency | Return as currency amount with currency denomination |
Date | Return a date |
Date/Time | Return a date/time |
Number | Return a number, including decimals |
Percent | Return a percent and adds a percent sign. |
Text | Returns as a text string. |
Time | Returns a time. |
Formula Fields - Simple Formulas
Formula Fields - Formula Operators
Math Operators | | Return Type (Integer) |
+ (Add) | = Field1__c + 30 | 35 |
- (Subtract) | = Field1__c - 30 | -25 |
* (Multiply) | = Field1__c * 30 | 150 |
/ (Divide) | = Field1__c / 30 | 0.16666667 |
^ (Exponentiation) | = Field1^4 = | 625 (5 x 5 x 5 x 5) |
() (Open Parenthesis and Close Parenthesis) | = (Field1__c - 2) * Field2__c | 30 |
Field1__c = 5, Field2__c = 10
Formula Fields - Formula Operators
Logical Operators | Example | Return Type | Result |
= and == (Equal) | Priority__c = ‘High’ Priority__c == ‘High’ | Boolean | False |
<> and != (Not Equal) | Priority__c <> ‘High’ Priority__c != ‘High’ | Boolean | True |
< (Less Than) | Field1__c < Field2__c | Boolean | True |
<= (Less Than or Equal) | Field1__c <= 3 | Boolean | False |
>= (Greater Than or Equal) | Field1__c >= 3 | Boolean | True |
Priority__c = ‘Low’, Field1__c = 5, Field2__c = 10
Formula Fields - Formula Operators
Logical Operators | Example | Return Type | Result |
&& (AND) | IF (Priority__c = ‘High’ && Field1__c < Field2__c, True, False) IF(AND(Priority__c = ‘High’, Field1__c < Field2__c), True, False) | Boolean | False |
|| (OR) | IF (Priority__c = ‘High’ || Field1__c < Field2__c, True, False) IF(OR(Priority__c = ‘High’, Field1__c < Field2__c), True, False) | Boolean | False |
Priority__c = ‘Low’, Field1__c = 5, Field2__c = 10
Formula Fields - Advanced Formulas
Formula Fields - Error Checking
Formula Fields - Cross Object Formulas
Display the Job Applicant name on an associated Review record.
Formula Fields - Functions
Date and Time Functions |
ADDMONTHS |
DATE |
DATEVALUE |
DATETIMEVALUE |
DAY |
HOUR |
MILLISECOND |
MINUTE |
MONTH |
NOW |
SECOND |
TIMENOW |
TIMEVALUE |
TODAY |
WEEKDAY |
YEAR |
Logical Functions |
AND |
BLANKVALUE |
CASE |
IF |
ISBLANK |
ISCLONE |
ISNEW |
ISNULL |
ISNUMBER |
NOT |
NULLVALUE |
OR |
PRIORVALUE |
Math Functions |
ABS |
CEILING |
DISTANCE |
EXP |
FLOOR |
GEOLOCATION |
LN |
LOG |
MAX |
MCEILING |
MFLOOR |
MIN |
MOD |
ROUND |
SQRT |
Text Functions | |
BEGINS | |
BR | RIGHT |
CASESAFEID | RPAD |
CONTAINS | SUBSTITUTE |
FIND | TEXT |
GETSESSIONID | TRIM |
HTMLENCODE | UPPER |
HYPERLINK | URLENCODE |
IMAGE | VALUE |
INCLUDES | |
ISPICKVAL | |
JSENCODE | |
JSINHTMLENCODE | |
LEFT | |
LEN | |
LOWER | |
LPAD | |
MID | |
| |
| |
| |
| |
| |
| |
| |
| |
Formula Fields - Date and Time Functions
Return Type | Formula | Result |
Number | | |
Text | | |
Number | | |
Date | | |
Formula Fields - Logical Functions
I
Return Type | Formula | Result |
Checkbox | | TRUE, FALSE |
Text | | Yes, No |
Text | | Image |
Formula Fields - Math Functions
I
Return Type | Formula | Result |
Currency | | |
Number | | |
Number | | |
Formula Fields - Text Functions
Return Type | Formula | Result |
Text | | |
Text | | |
Text | | |
Rollup Summaries - What are they?
What are Rollup Summary Fields?
Types of Rollup Summary Fields
Type | Usage |
COUNT | Totals the number of related records |
SUM | Totals the values in the field you select in the Field to Aggregate option. Only number, currency, and percent fields are available |
MIN | Displays the lowest value of the field you select in the Field to Aggregate option for all directly related records. Only number, currency, percent, date, and date/time fields are available. |
MAX | Displays the highest value of the field you select in the Field to Aggregate option for all directly related records. Only number, currency, percent, date, and date/time fields are available. |
Example Rollup Summaries
Type | Usage |
COUNT |
|
SUM |
|
MIN |
|
MAX |
|
Rollup Summary Considerations
Rollup Summary Considerations
Validation Rules - What are they?
Creating and View Validation Rules
Anatomy of a Validation Rule - Part 1
Name
State
Error Condition Formula
Formula Functions
Anatomy of a Validation Rule - Part 2
Error Message
Error Location
Failed Validation Rule Example
I
Top of Page | Field |
Validation Rules - Limitations and Considerations
Order of Execution (after before triggers)
Validation Rules - Scenario 1
Validation Rules - Scenario 2
Validation Rules - Scenario 3
Validation Rules - Scenario 4
Approval Processes - What are they?
Approval Process - Limitations
Approval Process Jump Start Wizard
Approval Process Jump Start Wizard
Approval Process Standard Setup Wizard
Approval Process Standard Setup Wizard
Approval Process Standard Setup Wizard
Approval Process Standard Setup Wizard
Approval Process Standard Setup Wizard
Approval Process Standard Setup Wizard
Approval Processes in Process Builder
Approval Processes in Flows
Questions
Next Steps
Thank you