It’s all about your mission.
description
Transcript of It’s all about your mission.
![Page 1: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/1.jpg)
It’s all about your mission.www.cloud4good.com
Francis ScudellariTrish PerkinsCloud [email protected]@cloud4good.com
Validation&
Workflow in Salesforce
![Page 2: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/2.jpg)
Working with organizations to create and implement strategic solutions based on cloud technology.
Salesforce.com Google Apps
It’s all about Your mission.
www.cloud4good.com
Cloud for Good
![Page 3: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/3.jpg)
Francis
It’s all about Your mission.
www.cloud4good.com
• Certified Salesforce Administrator
• Implementing Salesforce for nonprofits since 2009
• Providing technology-based solutions to nonprofits for over 12 years
![Page 4: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/4.jpg)
Trish
It’s all about Your mission.
www.cloud4good.com
• Certified Salesforce Administrator
• Worked with nonprofits since 2005
• Ran the IT departments at three nonprofits before joining Cloud for Good.
![Page 5: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/5.jpg)
Agenda
It’s all about Your mission.
www.cloud4good.com
Topics
Introduction to Validation Rules
How-to
Real World Examples
Introduction to Workflow
Step-by-Step
Finding Additional Help and Q&A
![Page 6: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/6.jpg)
It’s all about Your mission.
www.cloud4good.com
Section 1: Introduction To
Validation Rules
![Page 7: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/7.jpg)
Topics:
It’s all about Your mission.
www.cloud4good.com
• What’s a Validation Rule? • Why add a Validation Rule? • How to find them• Tips on using them• Examples of useful rules in everyday
Salesforce life
Section 1: Validation Rules
![Page 8: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/8.jpg)
What’s a Validation Rule?
It’s all about Your mission.
www.cloud4good.com
“Validation rules verify that the data a user enters in a record meets the standards you specify before the user can save the record.”
--Salesforce Help File
Section 1: Validation Rules
![Page 9: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/9.jpg)
Why?
It’s all about Your mission.
www.cloud4good.com
• Ensure data integrity• Another way to require a field…or a way to
conditionally require a field• Only allow certain users to change a field• Prevent records from a related list from being
added or deleted
Section 1: Validation Rules
![Page 10: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/10.jpg)
How to find them:
It’s all about Your mission.
www.cloud4good.com
Section 1: Validation Rules
![Page 11: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/11.jpg)
How to find them:
It’s all about Your mission.
www.cloud4good.com
Section 1: Validation Rules
![Page 12: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/12.jpg)
Where? Standard Object
It’s all about Your mission.
www.cloud4good.com
Section 1: Validation Rules
![Page 13: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/13.jpg)
Where? Step Two
It’s all about Your mission.
www.cloud4good.com
Section 1: Validation Rules
![Page 14: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/14.jpg)
Where? Custom Objects
It’s all about Your mission.
www.cloud4good.com
Section 1: Validation Rules
![Page 15: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/15.jpg)
It’s all about Your mission.
www.cloud4good.com
Custom Objects Step Two Section 1: Validation Rules
![Page 16: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/16.jpg)
Custom Objects Step Three
It’s all about Your mission.
www.cloud4good.com
Section 1: Validation Rules
![Page 17: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/17.jpg)
Zip Code Example
It’s all about Your mission.
www.cloud4good.com
Section 1: Validation Rules
![Page 18: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/18.jpg)
Zip Code - 2
It’s all about Your mission.
www.cloud4good.com
Section 1: Validation Rules
![Page 19: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/19.jpg)
Tips on using them:
• Executed when a record is saved.• Make them either TRUE or FALSE• TRUE = an error message appears• Use formula functions + REGEX & VLOOKUP• Cross-object validation goes from parent to
child, master to detail.
It’s all about Your mission.
www.cloud4good.com
Section 1: Validation Rules
![Page 20: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/20.jpg)
Tell users exactly what they did wrong • Wrong: “You entered a wrong value.” • Wrong: “Oops, try again.” • Right: “That field is required.” • Right: Zip Codes need to be in this format:
99999 or 99999-9999
It’s all about Your mission.
www.cloud4good.com
Section 1: Validation Rules
![Page 21: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/21.jpg)
Examples from Real Life
• Making sure that dates are entered correctly
Begin_Date__c > End_Date__c"End Date cannot be before Begin Date.“
It’s all about Your mission.
www.cloud4good.com
Section 1: Validation Rules
![Page 22: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/22.jpg)
Examples from Real Life
• Making sure the year is right
YEAR( My_Date__c ) <> YEAR ( TODAY() )"Date must be in the current year.“
It’s all about Your mission.
www.cloud4good.com
Section 1: Validation Rules
![Page 23: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/23.jpg)
Examples from Real Life
• Making sure the percentage is right
OR ( Mix_Pct__c > 1.0, Mix_Pct__c < 0.0 )"Mix Pct must be between 0 and 100%."
It’s all about Your mission.
www.cloud4good.com
Section 1: Validation Rules
![Page 24: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/24.jpg)
Examples from Real Life• Getting the zip code format rightAND(OR(BillingCountry = "USA", BillingCountry = "US"),NOT(REGEX(BillingPostalCode, "\\d{5}(-\\d{4})?")))"Zip code must be in 99999 or 99999-9999 format.“
• Or the social security numberNOT(REGEX(SSN__c , "\\d{3}-\\d{2}-[0-9]{4}"))"SSN must be in 999-99-9999 format"
It’s all about Your mission.
www.cloud4good.com
Section 1: Validation Rules
![Page 25: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/25.jpg)
Examples from Real Life• Those pesky two-letter state codes!
AND (OR(BillingCountry = "US", BillingCountry="USA", ISBLANK(BillingCountry)),OR(LEN(BillingState) < 2,NOT(CONTAINS("AL:AK:AZ:AR:CA:CO:CT:DE:DC:FL:GA:HI:ID:" &"IL:IN:IA:KS:KY:LA:ME:MD:MA:MI:MN:MS:MO:MT:NE:NV:NH:" &"NJ:NM:NY:NC:ND:OH:OK:OR:PA:RI:SC:SD:TN:TX:UT:VT:VA:" &"WA:WV:WI:WY", BillingState))))
"A valid two-letter state code is required."It’s all about Your
mission.www.cloud4good.c
om
Section 1: Validation Rules
![Page 26: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/26.jpg)
It’s all about Your mission.
www.cloud4good.com
Section 2: Workflow
![Page 27: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/27.jpg)
Topics:
It’s all about Your mission.
www.cloud4good.com
• What is Workflow? • Why add Workflow? • Think it through first• How to create workflow – Step by step
through the process
Section 2: Workflow
![Page 28: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/28.jpg)
What is Workflow?
It’s all about Your mission.
www.cloud4good.com
Workflow is a way to automate your business processes.
While validation keeps your data clean, workflow takes the tedium out of repetitive tasks.
Section 2: Workflow
![Page 29: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/29.jpg)
Why add workflow?
It’s all about Your mission.
www.cloud4good.com
• Assign tasks – to yourself or your co-workers
• Send emails automatically
• Update fields automatically
Section 2: Workflow
![Page 30: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/30.jpg)
Thinking it through…
It’s all about Your mission.
www.cloud4good.com
What are the conditions that will trigger your workflow? – A record is created– A field is edited– Etc.
How do you want the rule to handle the change?
Section 2: Workflow
![Page 31: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/31.jpg)
Step-by-Step: Find Workflow
It’s all about Your mission.
www.cloud4good.com
Section 2: Workflow
![Page 32: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/32.jpg)
Step-by-Step: New Rule
It’s all about Your mission.
www.cloud4good.com
Section 2: Workflow
![Page 33: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/33.jpg)
Step-by-Step: Choose Object
It’s all about Your mission.
www.cloud4good.com
Section 2: Workflow
![Page 34: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/34.jpg)
It’s all about Your mission.
www.cloud4good.com
Section 2: WorkflowStep-by-Step:Name, Describe, Evaluation criteria
![Page 35: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/35.jpg)
Step-by-Step: Rule Criteria
It’s all about Your mission.
www.cloud4good.com
Section 2: Workflow
![Page 36: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/36.jpg)
Step-by-Step:Using a Formula Instead
It’s all about Your mission.
www.cloud4good.com
Section 2: Workflow
![Page 37: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/37.jpg)
Step-by-Step: Add Actions
It’s all about Your mission.
www.cloud4good.com
Section 2: Workflow
![Page 38: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/38.jpg)
Step-by-Step: New Task
It’s all about Your mission.
www.cloud4good.com
Section 2: Workflow
![Page 39: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/39.jpg)
Step-by-Step: New Email Alert
It’s all about Your mission.
www.cloud4good.com
Section 2: Workflow
![Page 40: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/40.jpg)
Step-by-Step: Find Email Templates
It’s all about Your mission.
www.cloud4good.com
Section 2: Workflow
![Page 41: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/41.jpg)
Step-by-Step: Email Alert-2
It’s all about Your mission.
www.cloud4good.com
Section 2: Workflow
![Page 42: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/42.jpg)
Step-by-Step: Field Update
It’s all about Your mission.
www.cloud4good.com
Section 2: Workflow
![Page 43: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/43.jpg)
Step-by-Step: Show Formula
It’s all about Your mission.
www.cloud4good.com
Section 2: Workflow
![Page 44: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/44.jpg)
Step-by-Step: Formulas - 1
It’s all about Your mission.
www.cloud4good.com
Section 2: Workflow
![Page 45: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/45.jpg)
Step-by-Step: Formulas -2
It’s all about Your mission.
www.cloud4good.com
Section 2: Workflow
![Page 46: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/46.jpg)
Step-by-Step: Outbound Message
It’s all about Your mission.
www.cloud4good.com
Section 2: Workflow
![Page 47: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/47.jpg)
Step-by-Step: Add Time-Dependent Actions
It’s all about Your mission.
www.cloud4good.com
Section 2: Workflow
![Page 48: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/48.jpg)
Step-by-Step: Time Trigger
It’s all about Your mission.
www.cloud4good.com
Section 2: Workflow
![Page 49: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/49.jpg)
Step-by-Step:Time Trigger - 2
It’s all about Your mission.
www.cloud4good.com
Section 2: Workflow
![Page 50: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/50.jpg)
Time Dependent Workflow Considerations:
It’s all about Your mission.
www.cloud4good.com
• You cannot attach time-triggers to an active Workflow Rule.
• You cannot attach time-dependent actions to a workflow rule that uses “Every time a record is created or edited” as the evaluation criteria.
• System Administrators can monitor all pending workflow actions in Setup.
Section 2: Workflow
![Page 51: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/51.jpg)
Time Dependent Workflow Considerations:
It’s all about Your mission.
www.cloud4good.com
• Pending actions remain in the queue only as long as the rule criteria that triggered the action still evaluate to True.
• If you edit the date used as the time trigger for a pending action, the time trigger will be re-evaluated.
• Leads with pending workflow actions cannot be converted.
Section 2: Workflow
![Page 52: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/52.jpg)
Step-by-Step: Finished!
It’s all about Your mission.
www.cloud4good.com
Section 2: Workflow
![Page 53: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/53.jpg)
Step-by-Step: Don’t Forget to Activate
It’s all about Your mission.
www.cloud4good.com
Section 2: Workflow
![Page 54: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/54.jpg)
It’s all about Your mission.
www.cloud4good.com
Section 3: Finding More Help
![Page 55: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/55.jpg)
Finding More Help
It’s all about Your mission.
www.cloud4good.com
• Every Page contains help references• Help and Training links categorize topics according to what
you’re looking for and suggest options• Check out Cloud for Good’s Salesforce Resources Page:
http://cloud4good.com/online-resources/salesforce-resource/• Examples of Advanced Formula fields: https://na10.salesforce.com/help/doc/en/useful_advanced_formulas.htm
• Join the Community: – Nonprofit Salesforce Practitioners Google Group– NPSP Users Google Group– Salesforce.com Answers
Section 3: Finding More Help
![Page 57: It’s all about your mission.](https://reader036.fdocuments.net/reader036/viewer/2022062423/5681489d550346895db5b295/html5/thumbnails/57.jpg)
It’s all about Your mission.www.cloud4good.com
Thanks for coming!Francis Scudellari
[email protected] Perkins