SlideShare a Scribd company logo
1 of 30
Download to read offline
#TargetXSummit
Automation Nation:
Keeping your Process Builders in Check
Erin Bailey
The College of Global Studies
Arcadia University
#TargetXSummit
Introduction
● Approximately 4 years working within the Salesforce & TargetX communities
as a System Administrator
● Currently the Associate Business Analyst at The College of Global Studies
(TCGS, The College)
● Approaching 2 years with TCGS and I feel very fortunate to be working with
this group of people.
2
#TargetXSummit
Session Expectations
● This session is all about process builders and what we have built in our org
over the past 1.5 years.
● We went from 0 to 30 process builders very rapidly and found ourselves in a
bit of a mess that was preventing further development in our org and causing
errors on record saves.
3
#TargetXSummit
Session Expectations
● Curious to know who is here today?
● Who knows what a process builder is?
● Who has worked directly with process builders, either by creating new ones or
modifying existing ones?
● Who has plans to begin using process builders in their org?
4
Our Story
a.k.a. The Problem
5
#TargetXSummit
Our Story
● Began with the upgrade to utilize Application Requirement Manager
(ARM)
● Primarily a process to transition Application Requirements from Tasks
to Checklist items
● This was the best opportunity to audit existing Workflow Rules as we
were approaching limits
6
#TargetXSummit
Our Story
● First process builders implanted were to support the ARM upgrade
● The nerves were real!
● Process Builders introduced to me with statements like:
● “It is a very powerful tool.”
● “With great power comes great responsibility.”
7
Our Story
● Nerves shoved aside, we proceeded and had a very successful upgrade
Process Builder Implemented
Object Name
App Requirements V2 Add/Update App Requirement (v2)
Application Application AFs Complete
Application IDs_Master Rule_Post Acceptance Requirements
Checklist Item V2 Insert Checklist Item
Checklist Item V2 Conversion Only_Update Checklist Item
Checklist Item V2 Add/Update Checklist Item
Workflows Deactivated
Object Count
Application 8
Tasks 45
#TargetXSummit
Our Story
● Entered into the Honeymoon Phase
● Continued to build more process builder in our org because you can do so
much more with one process builder than with one workflow rule
9
Process Builders versus Workflow Rules
PROCESS BUILDER WORKFLOW
Complexity Multiple if/then statements A single if/then statement
Visual designer X
Browser support All (Chrome recommended) All
Starts when
-Record is changed
-Invoked by another process
-Platform event occurs Record is changed
Supports time-based actions X X
Supported Actions
Call Apex code X
Create records X Tasks only
Invoke processes X
Launch a flow X
Post to Chatter X
Send email (Email alerts only) (Email alerts only)
Send outbound messages
without code
Workarounds available to accomplish this but
not native X
Submit for approval X
Update fields Any related record The record or its parent
#TargetXSummit
Our Story
● Especially appealing features for our business needs:
● Multiple if/then statements
● Use of conditions when setting immediate actions
● We were able to replace multiple workflow rules with a single process builder
at a time
● Start Term Session Example (screen shots)
11
#TargetXSummit
Our Story
● Eventually, we hit our critical mass…
● Started getting hit with SOQL errors pointing back to process builders
● Realized just HOW MANY active process builder we had implemented in a
short period of time
● We knew we had an automation problem
12
#TargetXSummit
Our Story
● Application Object was
overloaded
● Application was the priority
with 12 process builders
● Student was secondary with
6 process builders
Before Beginning Clean Up
Object # of Flows
Application 12
Student 6
Checklist Item (v2) 3
Case 2
App Requirement (v2) 1
Base Program 1
Co-curricular Learning Certificate 1
Configuration 1
Programs 1
Task 1
User 1
Total 30
Coming Back
From The Edge
a.k.a. The Solution
14
#TargetXSummit
Coming Back From The Edge
● Build process builders in one of four camps:
● Initiators
● Actions
● Processors
● Subprocessors
● Set ‘Advanced Options’ to ‘Yes’ when appropriate
15
#TargetXSummit
The Solution
● Process Builder Review
● One Process Builder
SHOULD NOT equate to one
set of updates or actions as
we are used to with
Workflows
● Maximized efficiencies along
the way
After Initial Round of Clean Up
Object # of Flows
Application 6
Student 3
Checklist Item (v2) 3
Case 1
App Requirement (v2) 1
Base Requirement 1
Co-curricular Learning Certificate 1
Configuration 1
Programs 1
Task 1
User 1
Total 20
Coming Back From The Edge (Before & After)
Before Beginning Clean Up
Object # of Flows
Application 12
Student 6
Checklist Item (v2) 3
Case 2
App Requirement (v2) 1
Base Program 1
Co-curricular Learning Certificate 1
Configuration 1
Programs 1
Task 1
User 1
Total 30
After Initial Round of Clean Up
Object # of Flows
Application 6
Student 3
Checklist Item (v2) 3
Case 1
App Requirement (v2) 1
Base Requirement 1
Co-curricular Learning Certificate 1
Configuration 1
Programs 1
Task 1
User 1
Total 20
12 Application Process Builders to 6
Process Builders Merged into One: Online Application Updates
Name Advanced Set? Conditional Notes
Setting Start Term Session_Application No (Is Changed)
Update Supplemental Form Yes
Publish Decision Letter No (Is Changed)
Took original two decision diamonds to one
with conditional immediate actions
Hide from App Dashboard Yes
App Dashboard Field Updates No (Is Changed)
Took original two decision diamonds to one
with conditional immediate actions
Application AFs Complete/Incomplete No (Is Changed)
Took original two decision diamonds to one
with conditional immediate actions
#TargetXSummit
Coming Back From The Edge
● Creating efficient Process Builders:
● Including criteria where operator is set to ‘Is Changed’ is another way of
setting the Advanced Options to ‘Yes’
● Minimize the number of decision diamonds by using conditional
immediate actions
● Online Application Updates (Screen Shots)
19
Lessons Learned
(The Hard Way)
20
#TargetXSummit
Lessons Learned
● Our work is not done here
● However, we have come far enough and learned several lessons that can be
shared
21
#TargetXSummit
Lessons Learned
1. Unbox your Process Builders
a. We had too many processed doing one or two simple updates
b. Combine like automations (remember the four camps)
c. Break free of the Workflow Rule mentality
2. Set up Process Builders for Maximized Efficiencies
a. Use the ‘Advanced Options’ or ‘Is Changed’ criteria
b. Conditions are your friends!
22
#TargetXSummit
Lessons Learned
IMPORTANT NOTE:
Conditional Immediate
Actions are only available
when the ‘Action Type’ is
‘Update Records’
#TargetXSummit
Lessons Learned
3. Modify Existing Process Builders With Care
a. Finding the right Process Builder to add to can be a challenge
b. We have adopted a loose naming convention to help ID what process to modify
c. Modifications effect THE WHOLE process; you’ve got to test the whole thing!
Name Object
Application Updates_Add Tasks Application
Application Updates_Update Contact Application
In Country Travel Processing In Country Travel
Contact Update - Alerts Student
Contact Update - Update Related Record Student
Examples of Loose Naming Convention
24
Lessons Learned
IMPORTANT NOTE:
Test, Test, Test!
Disruptions with
modifications can
range from partial to
total process builder
failure
#TargetXSummit
Lessons Learned
4. Keep Tabs on Your Org’s Process Builders
a. We have a Google Spreadsheet to quickly access essential details of our process
builders at a glance
b. Details recorded here: Name, Object (triggering & updated), field (input &
updated), called apex
c. Two tabs: Active and Obsolete
26
#TargetXSummit
Lessons Learned
5. Tips for Deploying Process Builders into Production
a. Run Validation on Local Tests for change sets including process builder(s)
b. Not active when deployed to production, but validation helps to catch failures on
subsequent validations
6. Sometimes, you Just Have to use Code to get the Job Done
a. Shortly after clean up, we saw similar SOQL errors
b. Traced back to the Process Builder including the actions to set the Start Term
Session
c. The decision diamond and immediate actions were removed and replaced with
about 4 lines of code
27
Questions
Open Discussion
28
References
● Which Automation Tool Do I Use?
https://help.salesforce.com/articleView?id=process_which_tool.htm&type=5
● Process builder - validation test classes - best practice
https://success.salesforce.com/answers?id=9063A000000e4DkQAI
● Salesforce Process Builder Best Practices
https://medium.com/@apeattie/salesforce-process-builder-best-practices-
24e674b2b2b1
#TargetXSummit
Thank You!!
Erin Bailey
baileye@arcadia.edu

More Related Content

What's hot

Agile driven development main principles
Agile driven development main principlesAgile driven development main principles
Agile driven development main principles
Tanya Epstein
 
Resume-Akanksha_IBM_3yrs_Mainframe &Salesforce
Resume-Akanksha_IBM_3yrs_Mainframe &SalesforceResume-Akanksha_IBM_3yrs_Mainframe &Salesforce
Resume-Akanksha_IBM_3yrs_Mainframe &Salesforce
Akanksha 10
 
W JAX Performance Workshop - Organisational Antipatterns
W JAX Performance Workshop - Organisational AntipatternsW JAX Performance Workshop - Organisational Antipatterns
W JAX Performance Workshop - Organisational Antipatterns
Alois Reitbauer
 

What's hot (20)

BPMS2@BPM2018
BPMS2@BPM2018BPMS2@BPM2018
BPMS2@BPM2018
 
Jayakumar C
Jayakumar CJayakumar C
Jayakumar C
 
Applying both of waterfall and iterative development
Applying both of waterfall and iterative developmentApplying both of waterfall and iterative development
Applying both of waterfall and iterative development
 
Agile Manifesto Values
Agile Manifesto ValuesAgile Manifesto Values
Agile Manifesto Values
 
Іванна Заєць: Основи ПМа (PM’s Essentials)
 Іванна Заєць: Основи ПМа (PM’s Essentials) Іванна Заєць: Основи ПМа (PM’s Essentials)
Іванна Заєць: Основи ПМа (PM’s Essentials)
 
Agile methodologiesvswaterfall
Agile methodologiesvswaterfallAgile methodologiesvswaterfall
Agile methodologiesvswaterfall
 
6 marta firlej - is test manager role disappearing
6   marta firlej - is test manager role disappearing6   marta firlej - is test manager role disappearing
6 marta firlej - is test manager role disappearing
 
Building an Enterprise Performance and Load Testing Infrastructure
Building an Enterprise Performance and Load Testing InfrastructureBuilding an Enterprise Performance and Load Testing Infrastructure
Building an Enterprise Performance and Load Testing Infrastructure
 
Thinking tools for solving three Agile adoption problems
Thinking tools for solving three Agile adoption problemsThinking tools for solving three Agile adoption problems
Thinking tools for solving three Agile adoption problems
 
Agile driven development main principles
Agile driven development main principlesAgile driven development main principles
Agile driven development main principles
 
Agile Metrics That Matter
Agile Metrics That MatterAgile Metrics That Matter
Agile Metrics That Matter
 
Resume-Akanksha_IBM_3yrs_Mainframe &Salesforce
Resume-Akanksha_IBM_3yrs_Mainframe &SalesforceResume-Akanksha_IBM_3yrs_Mainframe &Salesforce
Resume-Akanksha_IBM_3yrs_Mainframe &Salesforce
 
W JAX Performance Workshop - Organisational Antipatterns
W JAX Performance Workshop - Organisational AntipatternsW JAX Performance Workshop - Organisational Antipatterns
W JAX Performance Workshop - Organisational Antipatterns
 
The One-Shot Product by Microsoft Product Leader
The One-Shot Product by Microsoft Product LeaderThe One-Shot Product by Microsoft Product Leader
The One-Shot Product by Microsoft Product Leader
 
Best of scrum and lean startup for product development
Best of scrum and lean startup for product developmentBest of scrum and lean startup for product development
Best of scrum and lean startup for product development
 
An example of a successful proof of concept
An example of a successful proof of conceptAn example of a successful proof of concept
An example of a successful proof of concept
 
Applied craftsmanship
Applied craftsmanshipApplied craftsmanship
Applied craftsmanship
 
Helping operations top-heavy teams the smart way
Helping operations top-heavy teams the smart wayHelping operations top-heavy teams the smart way
Helping operations top-heavy teams the smart way
 
Requirements engineering for agile methods
Requirements engineering for agile methodsRequirements engineering for agile methods
Requirements engineering for agile methods
 
Rapid e learning
Rapid e learningRapid e learning
Rapid e learning
 

Similar to 2.1 Automation Nation: Keeping your Process Builders in Check

Working Agile with Scrum and TFS 2013
Working Agile with Scrum and TFS 2013Working Agile with Scrum and TFS 2013
Working Agile with Scrum and TFS 2013
Moataz Nabil
 

Similar to 2.1 Automation Nation: Keeping your Process Builders in Check (20)

OOP 2014 - Lifecycle By Design
OOP 2014 - Lifecycle By DesignOOP 2014 - Lifecycle By Design
OOP 2014 - Lifecycle By Design
 
Continuous Performance Testing and Monitoring in Agile Development
Continuous Performance Testing and Monitoring in Agile DevelopmentContinuous Performance Testing and Monitoring in Agile Development
Continuous Performance Testing and Monitoring in Agile Development
 
ALM (Application Lifecycle Management)
ALM (Application Lifecycle Management)ALM (Application Lifecycle Management)
ALM (Application Lifecycle Management)
 
Introduction to Agile Software Development Process
Introduction to Agile Software Development ProcessIntroduction to Agile Software Development Process
Introduction to Agile Software Development Process
 
AMC Networks Experiments Faster on the Server Side
AMC Networks Experiments Faster on the Server SideAMC Networks Experiments Faster on the Server Side
AMC Networks Experiments Faster on the Server Side
 
Code in the Cloud - December 8th 2014
Code in the Cloud - December 8th 2014Code in the Cloud - December 8th 2014
Code in the Cloud - December 8th 2014
 
Resume
ResumeResume
Resume
 
Application Migration: How to Start, Scale and Succeed
Application Migration: How to Start, Scale and SucceedApplication Migration: How to Start, Scale and Succeed
Application Migration: How to Start, Scale and Succeed
 
Optimizely NYC Developer Meetup - Experimentation at Blue Apron
Optimizely NYC Developer Meetup - Experimentation at Blue ApronOptimizely NYC Developer Meetup - Experimentation at Blue Apron
Optimizely NYC Developer Meetup - Experimentation at Blue Apron
 
Working Agile with Scrum and TFS 2013
Working Agile with Scrum and TFS 2013Working Agile with Scrum and TFS 2013
Working Agile with Scrum and TFS 2013
 
Office Add-ins community call-March 2019
Office Add-ins community call-March 2019Office Add-ins community call-March 2019
Office Add-ins community call-March 2019
 
Test Process in Agile vs Waterfall
Test Process in Agile vs WaterfallTest Process in Agile vs Waterfall
Test Process in Agile vs Waterfall
 
Petri for kyiv.pptx
Petri for kyiv.pptxPetri for kyiv.pptx
Petri for kyiv.pptx
 
DevOPs Transformation Workshop
DevOPs Transformation WorkshopDevOPs Transformation Workshop
DevOPs Transformation Workshop
 
Experimentation at Blue Apron (webinar)
Experimentation at Blue Apron (webinar)Experimentation at Blue Apron (webinar)
Experimentation at Blue Apron (webinar)
 
Software Testing - Online Guide
Software Testing - Online GuideSoftware Testing - Online Guide
Software Testing - Online Guide
 
Shyam
ShyamShyam
Shyam
 
Building a Complete Pipeline: The Essential Components of Continuous Testing ...
Building a Complete Pipeline: The Essential Components of Continuous Testing ...Building a Complete Pipeline: The Essential Components of Continuous Testing ...
Building a Complete Pipeline: The Essential Components of Continuous Testing ...
 
Ashish Baraiya
Ashish BaraiyaAshish Baraiya
Ashish Baraiya
 
5 Key Metrics to Release Better Software Faster
5 Key Metrics to Release Better Software Faster5 Key Metrics to Release Better Software Faster
5 Key Metrics to Release Better Software Faster
 

More from TargetX

More from TargetX (20)

Lessons in Designing a Mobile Experience
Lessons in Designing a Mobile ExperienceLessons in Designing a Mobile Experience
Lessons in Designing a Mobile Experience
 
Redesigning the Student Experience
Redesigning the Student ExperienceRedesigning the Student Experience
Redesigning the Student Experience
 
Lessons in Designing a Mobile Experience
Lessons in Designing a Mobile ExperienceLessons in Designing a Mobile Experience
Lessons in Designing a Mobile Experience
 
The Role of the Lifecycle CRM in Your Retention Strategy
The Role of the Lifecycle CRM in Your Retention StrategyThe Role of the Lifecycle CRM in Your Retention Strategy
The Role of the Lifecycle CRM in Your Retention Strategy
 
CRM 101 - 401: Building Best Practices Into Your Roadmap
CRM 101 - 401: Building Best Practices Into Your RoadmapCRM 101 - 401: Building Best Practices Into Your Roadmap
CRM 101 - 401: Building Best Practices Into Your Roadmap
 
Using Your Data to Enhance Recruitment
Using Your Data to Enhance RecruitmentUsing Your Data to Enhance Recruitment
Using Your Data to Enhance Recruitment
 
The Power of Science + Art: How Advanced Analytics Innovations and Staff Empo...
The Power of Science + Art: How Advanced Analytics Innovations and Staff Empo...The Power of Science + Art: How Advanced Analytics Innovations and Staff Empo...
The Power of Science + Art: How Advanced Analytics Innovations and Staff Empo...
 
TargetX Insights: MultiObject Dashboards
TargetX Insights: MultiObject DashboardsTargetX Insights: MultiObject Dashboards
TargetX Insights: MultiObject Dashboards
 
Make Your Application Community Feel More Like Home
Make Your Application Community Feel More Like HomeMake Your Application Community Feel More Like Home
Make Your Application Community Feel More Like Home
 
From Front-line to Home Office: Using Your CRM to Manage One Stop Student Ser...
From Front-line to Home Office: Using Your CRM to Manage One Stop Student Ser...From Front-line to Home Office: Using Your CRM to Manage One Stop Student Ser...
From Front-line to Home Office: Using Your CRM to Manage One Stop Student Ser...
 
Automatic Document Indexing to Your SIS
Automatic Document Indexing to Your SISAutomatic Document Indexing to Your SIS
Automatic Document Indexing to Your SIS
 
A Customized Approach to Confirm Your Enrollment
A Customized Approach to Confirm Your EnrollmentA Customized Approach to Confirm Your Enrollment
A Customized Approach to Confirm Your Enrollment
 
Tracking Your Traffic: Using TargetX Engage to Collect, Manage, and Predict W...
Tracking Your Traffic: Using TargetX Engage to Collect, Manage, and Predict W...Tracking Your Traffic: Using TargetX Engage to Collect, Manage, and Predict W...
Tracking Your Traffic: Using TargetX Engage to Collect, Manage, and Predict W...
 
TargetX Retention: Now and the Future
TargetX Retention: Now and the FutureTargetX Retention: Now and the Future
TargetX Retention: Now and the Future
 
Student Journeys: Best Practices for the TargetX Platform
Student Journeys: Best Practices for the TargetX PlatformStudent Journeys: Best Practices for the TargetX Platform
Student Journeys: Best Practices for the TargetX Platform
 
Retention War Stories and Best Practices
Retention War Stories and Best PracticesRetention War Stories and Best Practices
Retention War Stories and Best Practices
 
How To Create an Engaging and Welcoming Community Through Schools App
How To Create an Engaging and Welcoming Community Through Schools AppHow To Create an Engaging and Welcoming Community Through Schools App
How To Create an Engaging and Welcoming Community Through Schools App
 
TargetX and Telemarketing: Utilizing the Telemarketing Tool to Support Recrui...
TargetX and Telemarketing: Utilizing the Telemarketing Tool to Support Recrui...TargetX and Telemarketing: Utilizing the Telemarketing Tool to Support Recrui...
TargetX and Telemarketing: Utilizing the Telemarketing Tool to Support Recrui...
 
Simple Survey = Visit Victory
Simple Survey = Visit VictorySimple Survey = Visit Victory
Simple Survey = Visit Victory
 
Schools App Best Practices
Schools App Best PracticesSchools App Best Practices
Schools App Best Practices
 

Recently uploaded

The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
SoniaTolstoy
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
fonyou31
 

Recently uploaded (20)

fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 

2.1 Automation Nation: Keeping your Process Builders in Check

  • 1. #TargetXSummit Automation Nation: Keeping your Process Builders in Check Erin Bailey The College of Global Studies Arcadia University
  • 2. #TargetXSummit Introduction ● Approximately 4 years working within the Salesforce & TargetX communities as a System Administrator ● Currently the Associate Business Analyst at The College of Global Studies (TCGS, The College) ● Approaching 2 years with TCGS and I feel very fortunate to be working with this group of people. 2
  • 3. #TargetXSummit Session Expectations ● This session is all about process builders and what we have built in our org over the past 1.5 years. ● We went from 0 to 30 process builders very rapidly and found ourselves in a bit of a mess that was preventing further development in our org and causing errors on record saves. 3
  • 4. #TargetXSummit Session Expectations ● Curious to know who is here today? ● Who knows what a process builder is? ● Who has worked directly with process builders, either by creating new ones or modifying existing ones? ● Who has plans to begin using process builders in their org? 4
  • 6. #TargetXSummit Our Story ● Began with the upgrade to utilize Application Requirement Manager (ARM) ● Primarily a process to transition Application Requirements from Tasks to Checklist items ● This was the best opportunity to audit existing Workflow Rules as we were approaching limits 6
  • 7. #TargetXSummit Our Story ● First process builders implanted were to support the ARM upgrade ● The nerves were real! ● Process Builders introduced to me with statements like: ● “It is a very powerful tool.” ● “With great power comes great responsibility.” 7
  • 8. Our Story ● Nerves shoved aside, we proceeded and had a very successful upgrade Process Builder Implemented Object Name App Requirements V2 Add/Update App Requirement (v2) Application Application AFs Complete Application IDs_Master Rule_Post Acceptance Requirements Checklist Item V2 Insert Checklist Item Checklist Item V2 Conversion Only_Update Checklist Item Checklist Item V2 Add/Update Checklist Item Workflows Deactivated Object Count Application 8 Tasks 45
  • 9. #TargetXSummit Our Story ● Entered into the Honeymoon Phase ● Continued to build more process builder in our org because you can do so much more with one process builder than with one workflow rule 9
  • 10. Process Builders versus Workflow Rules PROCESS BUILDER WORKFLOW Complexity Multiple if/then statements A single if/then statement Visual designer X Browser support All (Chrome recommended) All Starts when -Record is changed -Invoked by another process -Platform event occurs Record is changed Supports time-based actions X X Supported Actions Call Apex code X Create records X Tasks only Invoke processes X Launch a flow X Post to Chatter X Send email (Email alerts only) (Email alerts only) Send outbound messages without code Workarounds available to accomplish this but not native X Submit for approval X Update fields Any related record The record or its parent
  • 11. #TargetXSummit Our Story ● Especially appealing features for our business needs: ● Multiple if/then statements ● Use of conditions when setting immediate actions ● We were able to replace multiple workflow rules with a single process builder at a time ● Start Term Session Example (screen shots) 11
  • 12. #TargetXSummit Our Story ● Eventually, we hit our critical mass… ● Started getting hit with SOQL errors pointing back to process builders ● Realized just HOW MANY active process builder we had implemented in a short period of time ● We knew we had an automation problem 12
  • 13. #TargetXSummit Our Story ● Application Object was overloaded ● Application was the priority with 12 process builders ● Student was secondary with 6 process builders Before Beginning Clean Up Object # of Flows Application 12 Student 6 Checklist Item (v2) 3 Case 2 App Requirement (v2) 1 Base Program 1 Co-curricular Learning Certificate 1 Configuration 1 Programs 1 Task 1 User 1 Total 30
  • 14. Coming Back From The Edge a.k.a. The Solution 14
  • 15. #TargetXSummit Coming Back From The Edge ● Build process builders in one of four camps: ● Initiators ● Actions ● Processors ● Subprocessors ● Set ‘Advanced Options’ to ‘Yes’ when appropriate 15
  • 16. #TargetXSummit The Solution ● Process Builder Review ● One Process Builder SHOULD NOT equate to one set of updates or actions as we are used to with Workflows ● Maximized efficiencies along the way After Initial Round of Clean Up Object # of Flows Application 6 Student 3 Checklist Item (v2) 3 Case 1 App Requirement (v2) 1 Base Requirement 1 Co-curricular Learning Certificate 1 Configuration 1 Programs 1 Task 1 User 1 Total 20
  • 17. Coming Back From The Edge (Before & After) Before Beginning Clean Up Object # of Flows Application 12 Student 6 Checklist Item (v2) 3 Case 2 App Requirement (v2) 1 Base Program 1 Co-curricular Learning Certificate 1 Configuration 1 Programs 1 Task 1 User 1 Total 30 After Initial Round of Clean Up Object # of Flows Application 6 Student 3 Checklist Item (v2) 3 Case 1 App Requirement (v2) 1 Base Requirement 1 Co-curricular Learning Certificate 1 Configuration 1 Programs 1 Task 1 User 1 Total 20
  • 18. 12 Application Process Builders to 6 Process Builders Merged into One: Online Application Updates Name Advanced Set? Conditional Notes Setting Start Term Session_Application No (Is Changed) Update Supplemental Form Yes Publish Decision Letter No (Is Changed) Took original two decision diamonds to one with conditional immediate actions Hide from App Dashboard Yes App Dashboard Field Updates No (Is Changed) Took original two decision diamonds to one with conditional immediate actions Application AFs Complete/Incomplete No (Is Changed) Took original two decision diamonds to one with conditional immediate actions
  • 19. #TargetXSummit Coming Back From The Edge ● Creating efficient Process Builders: ● Including criteria where operator is set to ‘Is Changed’ is another way of setting the Advanced Options to ‘Yes’ ● Minimize the number of decision diamonds by using conditional immediate actions ● Online Application Updates (Screen Shots) 19
  • 21. #TargetXSummit Lessons Learned ● Our work is not done here ● However, we have come far enough and learned several lessons that can be shared 21
  • 22. #TargetXSummit Lessons Learned 1. Unbox your Process Builders a. We had too many processed doing one or two simple updates b. Combine like automations (remember the four camps) c. Break free of the Workflow Rule mentality 2. Set up Process Builders for Maximized Efficiencies a. Use the ‘Advanced Options’ or ‘Is Changed’ criteria b. Conditions are your friends! 22
  • 23. #TargetXSummit Lessons Learned IMPORTANT NOTE: Conditional Immediate Actions are only available when the ‘Action Type’ is ‘Update Records’
  • 24. #TargetXSummit Lessons Learned 3. Modify Existing Process Builders With Care a. Finding the right Process Builder to add to can be a challenge b. We have adopted a loose naming convention to help ID what process to modify c. Modifications effect THE WHOLE process; you’ve got to test the whole thing! Name Object Application Updates_Add Tasks Application Application Updates_Update Contact Application In Country Travel Processing In Country Travel Contact Update - Alerts Student Contact Update - Update Related Record Student Examples of Loose Naming Convention 24
  • 25. Lessons Learned IMPORTANT NOTE: Test, Test, Test! Disruptions with modifications can range from partial to total process builder failure
  • 26. #TargetXSummit Lessons Learned 4. Keep Tabs on Your Org’s Process Builders a. We have a Google Spreadsheet to quickly access essential details of our process builders at a glance b. Details recorded here: Name, Object (triggering & updated), field (input & updated), called apex c. Two tabs: Active and Obsolete 26
  • 27. #TargetXSummit Lessons Learned 5. Tips for Deploying Process Builders into Production a. Run Validation on Local Tests for change sets including process builder(s) b. Not active when deployed to production, but validation helps to catch failures on subsequent validations 6. Sometimes, you Just Have to use Code to get the Job Done a. Shortly after clean up, we saw similar SOQL errors b. Traced back to the Process Builder including the actions to set the Start Term Session c. The decision diamond and immediate actions were removed and replaced with about 4 lines of code 27
  • 29. References ● Which Automation Tool Do I Use? https://help.salesforce.com/articleView?id=process_which_tool.htm&type=5 ● Process builder - validation test classes - best practice https://success.salesforce.com/answers?id=9063A000000e4DkQAI ● Salesforce Process Builder Best Practices https://medium.com/@apeattie/salesforce-process-builder-best-practices- 24e674b2b2b1