Formula Ninja Deepa Patel President, Halak Consulting, LLC @halakconsulting Steve Molis Salesforce Administrator, Epsilon @stevemoforce Francis Pindar Solutions Architect, Cloud Sherpas @radnip James Garfield Salesforce Analyst, Agendia, Inc. @James__Garfield
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Formula Ninja Deepa Patel President, Halak Consulting, LLC @halakconsulting
Steve Molis Salesforce Administrator, Epsilon @stevemoforce
Francis Pindar Solutions Architect, Cloud Sherpas @radnip
James Garfield Salesforce Analyst, Agendia, Inc. @James__Garfield
Safe Harbor Safe harbor statement under the Private Securities Litigation Reform Act of 1995: This presentation may contain forward-looking statements that involve risks, uncertainties, and assumptions. If any such uncertainties materialize or if any of the assumptions proves incorrect, the results of salesforce.com, inc. could differ materially from the results expressed or implied by the forward-looking statements we make. All statements other than statements of historical fact could be deemed forward-looking, including any projections of product or service availability, subscriber growth, earnings, revenues, or other financial items and any statements regarding strategies or plans of management for future operations, statements of belief, any statements concerning new, planned, or upgraded services or technology developments and customer contracts or use of our services. The risks and uncertainties referred to above include – but are not limited to – risks associated with developing and delivering new functionality for our service, new products and services, our new business model, our past operating losses, possible fluctuations in our operating results and rate of growth, interruptions or delays in our Web hosting, breach of our security measures, the outcome of any litigation, risks associated with completed and any possible mergers and acquisitions, the immature market in which we operate, our relatively limited operating history, our ability to expand, retain, and motivate our employees and manage our growth, new releases of our service and successful customer deployment, our limited history reselling non-salesforce.com products, and utilization and selling to larger enterprise customers. Further information on potential factors that could affect the financial results of salesforce.com, inc. is included in our annual report on Form 10-K for the most recent fiscal year and in our quarterly report on Form 10-Q for the most recent fiscal quarter. These documents and others containing important disclosures are available on the SEC Filings section of the Investor Information section of our Web site. Any unreleased services or features referenced in this or other presentations, press releases or public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make the purchase decisions based upon features that are currently available. Salesforce.com, inc. assumes no obligation and does not intend to update these forward-looking statements.
Deepa Patel President, Halak Consulting, LLC
Formula Basics
Traditional Formula Writing vs.
Writing Formulas In Salesforce
IF Statement
If State = “CA” then Region = “West” End If
If (Field Name) = “Value”, then do this, else do that) – Comma is used in place of “then” and “else”, Right Parenthesis is used in place of “End If
If (State = “CA”, “West”, “ “)
Nested IF Statement
If State = “CA” then Region = “West” Else If State = “WA” then Region = “West” Else If State = “NY” then Region = “East” Else If State = “IL” then Region = “Mid-West” Else ……EndIf
If (State = “CA”, “West”, If (State = “WA”, “West”, If (State = “NY”, “East”, If (State = “IL”, “Mid-West”,“ “))))
Case Statement
CASE( fieldname, value 1, result 1, Value 2, result 2, Else result)
Business Case Completeness and Qualitative Scoring Formula
1000s of leads added to the system by Marketing department on a regular basis. How do we know if the data is any good on these leads? We need to design a Completeness Score that shows the lead rating based on the information in the lead
Once the reps have started working on the leads, we need to know how good are the leads based on the qualification questions. High quality leads needs to be transferred over to Outside Sales.
Completeness What is Completeness?
Here we are checking for the number of fields that are populated with data and give each field a score for completeness Title Phone Number Email Company Name Web Site
Completeness Lead Scoring
Compile Size = 395
If Field is blank, then give it a score 0 or else give it a score 5
CASE (Title,””, 0,5)+ CASE (Street,””, 0,5)+ CASE (Email,””, 0,5)+ CASE (Phone,””, 0,5)+ CASE (Website,””, 0,5)
Completeness Lead Scoring
Compile Size = 266
If Field is blank, then give it a score 0 or else give it a score 5
Here we are checking for the values of fields and give each field a score based on values Is there a Budget? Does this person have Authority? Do they have a need for our Product or Services? What is their purchasing Time frame?
– 5 days after creation of an opportunity data check the fields and if the record fails email the account owner.
– 10 days after creation check again and if it fails create a task for the owner.
– 15 days after update a field that activates validation rules on the record.
Maintaining Data Quality: Using Image Formulas!
Maintaining Data Quality: Using FORMULA FIELDS!
Creating Image Formulas
Steve Molis Salesforce MVP @SteveMoForce
• 4 Time Salesforce MVP: 2011, 2012, 2013, 2014 • Self-Taught System Administrator/Developer • 0 Salesforce Admin or Developer Certifications • 1 App named after me “Thanks Reid Carlberg!” • Community College Drop-Out : 0.67 GPA *
* Margin of error: +/- 0.67
About SteveMo…
Safe Harbor
More than one way to deal with a Picklist field (or skin a cat)*
•Using the ISPICKVAL and CASE Functions
•Creating an Opportunity Rollback Validation Rule
•Using the TEXT Function to convert Picklist Values
* No Animals Were Harmed in the Making of These Formulas
Function: ISPICKVAL (aka “old faithful”) Description: Determines if the value of a picklist field is
equal to a text literal you specify.
Example:
IF(ISPICKVAL(Weather, "Zombies!"), "RUN!!!", IF(ISPICKVAL(Weather, "HOT"), "Go Swimming", IF(ISPICKVAL(Weather, "WARM"), “Have a picnic", IF(ISPICKVAL(Weather, "COLD"), "Sit by the fire", "Send out for Pizza"))))
Function: CASE
Description: Checks a given expression against a series of values.
Example:
CASE(Weather, "Zombies!", "RUN!!!", "HOT", "Go Swimming", "WARM", “Have a picnic", "COLD", "Sit by the fire", "Send out for Pizza")
More than one way to deal with a Picklist field (or skin a cat)
Business Requirement Prevent user from changing the Opportunity Stage to a previous Opportunity Stage
Solution Use a Validation Rule to evaluate current Opportunity Stage and compare it to the previous Opportunity Stage
Fields Referenced Opportunity: StageName
Functions and Operators Used CASE PRIORVALUE <
More than one way to deal with a Picklist field (or skin a cat)
More than one way to deal with a Picklist field (or skin a cat)
More than one way to deal with a Picklist field (or skin a cat)
Problem: Extract the Numeric Value from the end of Picklist Values that contain mixed length text characters. Use Case: Approval Processes, Workflow Rules, Validation Rules, Formula Fields.
More than one way to deal with a Picklist field (or skin a cat)
More than one way to deal with a Picklist field (or skin a cat)
More than one way to deal with a Picklist field (or skin a cat)
Solution:
Formula: VALUE( RIGHT ( TEXT ( SLA__c ), 3 )) Compiled size: 280 bytes
• Use the TEXT function to convert the Picklist Value to a Text String.
• Then use the RIGHT function to extract the last 3 characters or the Text String.
• Then use the VALUE function to convert the last 3 characters to a Numeric Value.
Field Name: Bottles of Beer on the Wall Dataype: Picklist 100 Values: 100 - Bottles of Beer 99 - Bottles of Beer 98 - Bottles of Beer 97 - Bottles of Beer 96 - Bottles of Beer 95 - Bottles of Beer 94 - Bottles of Beer …
More than one way to deal with a Picklist field (or skin a cat)
Dataype: Formula Result: Number Formula: VALUE(TRIM(LEFT(TEXT(Bottles_of_Beer_on_the_Wall__c), FIND(" - ", TEXT(Bottles_of_Beer_on_the_Wall__c))))) Compiled size: ISPICKVAL = 7,602 characters CASE = 6,478 bytes TEXT = 546 bytes
More than one way to deal with a Picklist field (or skin a cat)
More than one way to deal with a Picklist field (or skin a cat)
Who owes me a beer?!?
More than one way to deal with a Picklist field (or skin a cat)
Formula Resources
• Introduction to Formulas – http://wiki.developerforce.com/page/An_Introduction_to_Formulas