SlideShare a Scribd company logo
1 of 23
Bypassing Validations Rules Through
Automation
Aaron Crear
#CD19
Salesforce Goals Achieved
Services:
● Administration
● Development
● Training
Aaron Crear
Founder & Principal
#CD19
Salesforce Changed my Life!
Recovering Sales Manager
- User since 2009
- Began self-learning to make my job easier
- Became default Salesforce Admin
Rolled the dice in June 2016, accomplishments to date
- Began with Trailhead
- 5 x Salesforce Certified
- Full-time consulting practice with book of clients
- Speaker at Dreamforce, Big Sky Dreamin’, Czech Dreamin’, dreamOle’, Florida Dreamin’
French Touch Dreamin’, Phillyforce, Midwest Dreamin’, Snowforce, Southeast Dreamin’, True
North Dreamin’
- Lowell, MA User Group Leader, Northeast Dreamin’ Co-Organizer
Why am I here?
#CD19
Validation rules are a useful method of maintaining data hygiene, orders of
operations and ensuring that users follow the correct work processes.
However, at times they can be a hinderance to being productive. In this
presentation we will show you how to allow users to bypass validation rules
to update records through their activities without allowing them to manually
update records.
Abstract
#CD19
Allow user actions to update records, but no manual editing of field.
Hat-Trick Consulting wants to prevent sales reps from manually editing the
Contact Status field. This field should only be updated when the rep has
logged an activity to the contact. The type of activity dictates what status to
change the record to.
Use Case # 1
#CD19
Unsuccessful
● Add a validation rule that prevents reps from editing the contact status field
● Make the contact status field read only on the page layout
● Create automation that simply updates the field based on activity creation
Result: Since the user is firing the automation from the record, they must have edit access on the page
layout. Using this method causes an error for the automation, thus preventing them from logging the activity.
Automation also catches on the validation rule if you try to leave the field as editable on the page layout.
First-thought Solutions
#CD19
Successful
To allow for the use case of prohibiting manual editing of the Contact
Status field, while allowing related activities to update this field we will use
a combination of functions that will include:
■ 1 Validation Rule
■ 4 Custom fields
■ 3 Process Builders
Actual Solution
#CD19
Contact Object
We will add four custom checkbox fields Contact object. These will be used with each of the
three process builders. These fields can be left off the user page layout, however users need
edit access. Leaving them on an admin layout is a good way to test and troubleshoot.
Bypass_Validation__c
Fire_Process_Builder__c
SAL_Task__c
SQL_Task__c
Custom Fields
#CD19
Contact Object
We will add a new validation rule on the Contact object that prevents users from
editing the Contact Status field unless the new custom field Bypass Validation
equals true.
Validation Rule
#CD19
Set Bypass
This process builder will set the Bypass Validation and either SAL Task or SQL Task on the
Contact record, which essentially disables the validation rule. You can choose your own
criteria, but this would run on either the Task, Event or both.
Process Builder #1
#CD19
Update Contact Status
This process builder will update the Contact Status and Fire Process Builder fields on the
Contact record. The criteria is simply that the Bypass Validation field is true and either SAL
Task or SQL Task are also true.
Process Builder #2
#CD19
Clear Checkboxes
This process builder will clear the Bypass Validation, Fire Process Builder, SAL Task and SQL
Task fields. This re-establishes the validation rule from being bypassed. The criteria is that
both the Bypass Validation and Fire Process Builder fields are true. Be sure to update theses
fields in separate immediate actions.
Process Builder #3
#CD19
#CD19
Allow user actions to update records, but no manual editing of field.
Hat-Trick Consulting wants to prevent service reps from manually changing
the case status field to “working”. This field should only be updated when
the rep has logged a specific activity to the case.
Use Case # 2
#CD19
Unsuccessful
● Add a validation rule that prevents reps from moving the case status field to “working”
● Make the case status field read only on the page layout
● Create automation that simply updates the field based on activity creation
Result: Since the user is firing the automation from the record, they must have edit access on the page
layout. Using this method causes an error for the automation, thus preventing them from logging the activity.
Automation also catches on the validation rule if you try to leave the field as editable on the page layout.
First-thought Solutions
#CD19
Successful
To allow for the use case of prohibiting manually moving the Case Status
field to “working”, while allowing related activities to update this field we
will use a combination of functions that will include:
■ 1 Validation Rule
■ 1 Custom field
■ 1 Process Builder
■ 1 Flow
Actual Solution
#CD19
Case Object
We will add a custom checkbox field on the Case object. This will be used within the Flow an
essentially disables our validation rule. This field can be left off the user page layout, however
users need edit access. Leaving them on an admin layout is a good way to test and
troubleshoot.
Bypass_Validation__c
Custom Field
#CD19
Case Object
We will add a new validation rule on the Contact object that prevents users from
moving the Status field to “working” unless the new custom field Bypass Validation
equals true.
Validation Rule
#CD19
Launch Flow
This process builder will fire the Flow when a specific Task is related to the Case. You can
choose your own criteria, but this would run on either the Task, Event or both.
Process Builder
#CD19
Set Bypass, Change Status, Remove Bypass
This Flow will set the Bypass Validation field to true, then change the Status to “working”, then
set the Bypass Validation to false. A pause between separate record update elements is
required.
Flow
#CD19
#CD19
Aaron Crear
Founder & Principal
acrear@hat-trickconsutling.com
@aaroncrear
Other Tips
• Turn on field history tracking for
the fields used in the automation
• Develop audit reports
• Test, re-test and test again
• Create notifications or dashboard
components based on the contact
status change
Thank you!

More Related Content

What's hot

Oracle Apps Technical – Short notes on RICE Components.
Oracle Apps Technical – Short notes on RICE Components.Oracle Apps Technical – Short notes on RICE Components.
Oracle Apps Technical – Short notes on RICE Components.Boopathy CS
 
Rapid implementation Spreadsheets in Oracle ERP Cloud
Rapid implementation Spreadsheets in Oracle ERP CloudRapid implementation Spreadsheets in Oracle ERP Cloud
Rapid implementation Spreadsheets in Oracle ERP CloudPrithis Das, PMP, OCS ☁️
 
Faq receiving returns and corrections document Oracle apps
Faq receiving returns and corrections  document Oracle apps Faq receiving returns and corrections  document Oracle apps
Faq receiving returns and corrections document Oracle apps SarathShankar
 
R12 revenue recognition_oaug
R12 revenue recognition_oaugR12 revenue recognition_oaug
R12 revenue recognition_oaugSurya Maddiboina
 
152633980 accrual-reconciliation-process-and-troubleshooting-in-r12-pdf
152633980 accrual-reconciliation-process-and-troubleshooting-in-r12-pdf152633980 accrual-reconciliation-process-and-troubleshooting-in-r12-pdf
152633980 accrual-reconciliation-process-and-troubleshooting-in-r12-pdfnarane1976
 
Oracle Payable Complete Business flows
Oracle Payable Complete Business flowsOracle Payable Complete Business flows
Oracle Payable Complete Business flowsAdil Arshad
 
Understanding Multi-Org Structure in Oracle Apps
Understanding Multi-Org Structure in Oracle AppsUnderstanding Multi-Org Structure in Oracle Apps
Understanding Multi-Org Structure in Oracle AppsBaker Khader Abdallah, PMP
 
P2P Cycle -Oracle Apps
P2P Cycle -Oracle AppsP2P Cycle -Oracle Apps
P2P Cycle -Oracle AppsManu MK
 
Oracle Revenue Management Cloud Services | what is ORMB? | revenue management...
Oracle Revenue Management Cloud Services | what is ORMB? | revenue management...Oracle Revenue Management Cloud Services | what is ORMB? | revenue management...
Oracle Revenue Management Cloud Services | what is ORMB? | revenue management...CLTConsultingService
 
GL - Step 4 - Part 2 - Ledgers & Legal Entities
GL - Step 4 - Part 2 - Ledgers & Legal EntitiesGL - Step 4 - Part 2 - Ledgers & Legal Entities
GL - Step 4 - Part 2 - Ledgers & Legal EntitiesMohammed Raouf
 
Ap invoice line level approval - R12
Ap invoice line level approval - R12  Ap invoice line level approval - R12
Ap invoice line level approval - R12 Anand Mallarapu
 

What's hot (20)

Oracle Apps Technical – Short notes on RICE Components.
Oracle Apps Technical – Short notes on RICE Components.Oracle Apps Technical – Short notes on RICE Components.
Oracle Apps Technical – Short notes on RICE Components.
 
Oracle R12 Financials New Features Overview
Oracle R12 Financials New Features OverviewOracle R12 Financials New Features Overview
Oracle R12 Financials New Features Overview
 
iExpenses Setup
iExpenses SetupiExpenses Setup
iExpenses Setup
 
Oracle hrms bg setup examples
Oracle hrms bg setup examplesOracle hrms bg setup examples
Oracle hrms bg setup examples
 
Oracle apps-technical-tutorial
Oracle apps-technical-tutorialOracle apps-technical-tutorial
Oracle apps-technical-tutorial
 
Oracle R12 Legal Entity
Oracle R12 Legal EntityOracle R12 Legal Entity
Oracle R12 Legal Entity
 
Rapid implementation Spreadsheets in Oracle ERP Cloud
Rapid implementation Spreadsheets in Oracle ERP CloudRapid implementation Spreadsheets in Oracle ERP Cloud
Rapid implementation Spreadsheets in Oracle ERP Cloud
 
Faq receiving returns and corrections document Oracle apps
Faq receiving returns and corrections  document Oracle apps Faq receiving returns and corrections  document Oracle apps
Faq receiving returns and corrections document Oracle apps
 
R12 revenue recognition_oaug
R12 revenue recognition_oaugR12 revenue recognition_oaug
R12 revenue recognition_oaug
 
152633980 accrual-reconciliation-process-and-troubleshooting-in-r12-pdf
152633980 accrual-reconciliation-process-and-troubleshooting-in-r12-pdf152633980 accrual-reconciliation-process-and-troubleshooting-in-r12-pdf
152633980 accrual-reconciliation-process-and-troubleshooting-in-r12-pdf
 
Ap test script
Ap test scriptAp test script
Ap test script
 
Oracle Payable Complete Business flows
Oracle Payable Complete Business flowsOracle Payable Complete Business flows
Oracle Payable Complete Business flows
 
R12 Tax GST slides
R12 Tax GST slidesR12 Tax GST slides
R12 Tax GST slides
 
Understanding Multi-Org Structure in Oracle Apps
Understanding Multi-Org Structure in Oracle AppsUnderstanding Multi-Org Structure in Oracle Apps
Understanding Multi-Org Structure in Oracle Apps
 
R12.2.4 india localization setup
R12.2.4 india localization setupR12.2.4 india localization setup
R12.2.4 india localization setup
 
P2P Cycle -Oracle Apps
P2P Cycle -Oracle AppsP2P Cycle -Oracle Apps
P2P Cycle -Oracle Apps
 
Oracle Revenue Management Cloud Services | what is ORMB? | revenue management...
Oracle Revenue Management Cloud Services | what is ORMB? | revenue management...Oracle Revenue Management Cloud Services | what is ORMB? | revenue management...
Oracle Revenue Management Cloud Services | what is ORMB? | revenue management...
 
GL - Step 4 - Part 2 - Ledgers & Legal Entities
GL - Step 4 - Part 2 - Ledgers & Legal EntitiesGL - Step 4 - Part 2 - Ledgers & Legal Entities
GL - Step 4 - Part 2 - Ledgers & Legal Entities
 
TE040 Oracle AP Testscript
TE040 Oracle AP TestscriptTE040 Oracle AP Testscript
TE040 Oracle AP Testscript
 
Ap invoice line level approval - R12
Ap invoice line level approval - R12  Ap invoice line level approval - R12
Ap invoice line level approval - R12
 

Similar to Bypassing Validation Rules Through Automation, Aaron Crear

Follow the evidence: Troubleshooting Performance Issues
Follow the evidence:  Troubleshooting Performance IssuesFollow the evidence:  Troubleshooting Performance Issues
Follow the evidence: Troubleshooting Performance IssuesSalesforce Developers
 
10 of Our Favorite Salesforce Winter ’21 Features
10 of Our Favorite Salesforce Winter ’21 Features10 of Our Favorite Salesforce Winter ’21 Features
10 of Our Favorite Salesforce Winter ’21 FeaturesDoria Hamelryk
 
Automate All The Things with Flow
Automate All The Things with FlowAutomate All The Things with Flow
Automate All The Things with FlowSalesforce Admins
 
MVP Process Automation Showdown by Chris Edwards, Jennifer Lee, Michael Gill ...
MVP Process Automation Showdown by Chris Edwards, Jennifer Lee, Michael Gill ...MVP Process Automation Showdown by Chris Edwards, Jennifer Lee, Michael Gill ...
MVP Process Automation Showdown by Chris Edwards, Jennifer Lee, Michael Gill ...Salesforce Admins
 
Spring24-Release Overview - Wellingtion User Group-1.pdf
Spring24-Release Overview - Wellingtion User Group-1.pdfSpring24-Release Overview - Wellingtion User Group-1.pdf
Spring24-Release Overview - Wellingtion User Group-1.pdfAnna Loughnan Colquhoun
 
Preparing for Lightning: Replacing URL Hacks with Actions
Preparing for Lightning: Replacing URL Hacks with ActionsPreparing for Lightning: Replacing URL Hacks with Actions
Preparing for Lightning: Replacing URL Hacks with ActionsMike White
 
Performance Tuning for Visualforce and Apex
Performance Tuning for Visualforce and ApexPerformance Tuning for Visualforce and Apex
Performance Tuning for Visualforce and ApexSalesforce Developers
 
MARKETING ORDER - SAP B1 Addon
MARKETING ORDER - SAP B1 AddonMARKETING ORDER - SAP B1 Addon
MARKETING ORDER - SAP B1 AddonSAP Silver Touch
 
2020 Updated Microsoft MB-200 Questions and Answers
2020 Updated Microsoft MB-200 Questions and Answers2020 Updated Microsoft MB-200 Questions and Answers
2020 Updated Microsoft MB-200 Questions and Answersdouglascarnicelli
 
26 story slicing techniques for any scrum team
26 story slicing techniques for any scrum team26 story slicing techniques for any scrum team
26 story slicing techniques for any scrum teamagilebin
 
Pharmacy Management Software
Pharmacy Management Software Pharmacy Management Software
Pharmacy Management Software B M ASHIK MAHMUD
 
FINAL PROJECT REPORT1
FINAL PROJECT REPORT1FINAL PROJECT REPORT1
FINAL PROJECT REPORT1waqar younas
 
Process Builder Automation and Considerations
Process Builder Automation and ConsiderationsProcess Builder Automation and Considerations
Process Builder Automation and ConsiderationsSathishkumar Periyasamy
 
Salesforce.com API Series: Service Cloud Console Deep Dive
Salesforce.com API Series: Service Cloud Console Deep DiveSalesforce.com API Series: Service Cloud Console Deep Dive
Salesforce.com API Series: Service Cloud Console Deep DiveSalesforce Developers
 

Similar to Bypassing Validation Rules Through Automation, Aaron Crear (20)

Lightning Process Builder
Lightning Process BuilderLightning Process Builder
Lightning Process Builder
 
Lightning Process Builder
Lightning Process BuilderLightning Process Builder
Lightning Process Builder
 
Follow the evidence: Troubleshooting Performance Issues
Follow the evidence:  Troubleshooting Performance IssuesFollow the evidence:  Troubleshooting Performance Issues
Follow the evidence: Troubleshooting Performance Issues
 
10 of Our Favorite Salesforce Winter ’21 Features
10 of Our Favorite Salesforce Winter ’21 Features10 of Our Favorite Salesforce Winter ’21 Features
10 of Our Favorite Salesforce Winter ’21 Features
 
Microsoft Dynamics GP 2015 features
Microsoft Dynamics GP 2015 featuresMicrosoft Dynamics GP 2015 features
Microsoft Dynamics GP 2015 features
 
Automate All The Things with Flow
Automate All The Things with FlowAutomate All The Things with Flow
Automate All The Things with Flow
 
MVP Process Automation Showdown by Chris Edwards, Jennifer Lee, Michael Gill ...
MVP Process Automation Showdown by Chris Edwards, Jennifer Lee, Michael Gill ...MVP Process Automation Showdown by Chris Edwards, Jennifer Lee, Michael Gill ...
MVP Process Automation Showdown by Chris Edwards, Jennifer Lee, Michael Gill ...
 
Spring24-Release Overview - Wellingtion User Group-1.pdf
Spring24-Release Overview - Wellingtion User Group-1.pdfSpring24-Release Overview - Wellingtion User Group-1.pdf
Spring24-Release Overview - Wellingtion User Group-1.pdf
 
Preparing for Lightning: Replacing URL Hacks with Actions
Preparing for Lightning: Replacing URL Hacks with ActionsPreparing for Lightning: Replacing URL Hacks with Actions
Preparing for Lightning: Replacing URL Hacks with Actions
 
Performance Tuning for Visualforce and Apex
Performance Tuning for Visualforce and ApexPerformance Tuning for Visualforce and Apex
Performance Tuning for Visualforce and Apex
 
MARKETING ORDER - SAP B1 Addon
MARKETING ORDER - SAP B1 AddonMARKETING ORDER - SAP B1 Addon
MARKETING ORDER - SAP B1 Addon
 
2020 Updated Microsoft MB-200 Questions and Answers
2020 Updated Microsoft MB-200 Questions and Answers2020 Updated Microsoft MB-200 Questions and Answers
2020 Updated Microsoft MB-200 Questions and Answers
 
26 story slicing techniques for any scrum team
26 story slicing techniques for any scrum team26 story slicing techniques for any scrum team
26 story slicing techniques for any scrum team
 
Pharmacy Management Software
Pharmacy Management Software Pharmacy Management Software
Pharmacy Management Software
 
User Stories Lunch & Learn
User Stories Lunch & LearnUser Stories Lunch & Learn
User Stories Lunch & Learn
 
FINAL PROJECT REPORT1
FINAL PROJECT REPORT1FINAL PROJECT REPORT1
FINAL PROJECT REPORT1
 
Cube remodelling
Cube remodellingCube remodelling
Cube remodelling
 
CATS Approval.pdf
CATS Approval.pdfCATS Approval.pdf
CATS Approval.pdf
 
Process Builder Automation and Considerations
Process Builder Automation and ConsiderationsProcess Builder Automation and Considerations
Process Builder Automation and Considerations
 
Salesforce.com API Series: Service Cloud Console Deep Dive
Salesforce.com API Series: Service Cloud Console Deep DiveSalesforce.com API Series: Service Cloud Console Deep Dive
Salesforce.com API Series: Service Cloud Console Deep Dive
 

More from CzechDreamin

10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka DoktorováCzechDreamin
 
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...CzechDreamin
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...CzechDreamin
 
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone KomSalesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone KomCzechDreamin
 
Powerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara LaskowskaPowerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara LaskowskaCzechDreamin
 
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi IbrahimzadeFree and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi IbrahimzadeCzechDreamin
 
AI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekAI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekCzechDreamin
 
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya HalderCustom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya HalderCzechDreamin
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...CzechDreamin
 
Salesforce Forecasting: Evolution, Implementation and Best Practices, Christi...
Salesforce Forecasting: Evolution, Implementation and Best Practices, Christi...Salesforce Forecasting: Evolution, Implementation and Best Practices, Christi...
Salesforce Forecasting: Evolution, Implementation and Best Practices, Christi...CzechDreamin
 
Supercharge Salesforce Marketing Cloud: The Ultimate Apps Guide, Cyril Louis ...
Supercharge Salesforce Marketing Cloud: The Ultimate Apps Guide, Cyril Louis ...Supercharge Salesforce Marketing Cloud: The Ultimate Apps Guide, Cyril Louis ...
Supercharge Salesforce Marketing Cloud: The Ultimate Apps Guide, Cyril Louis ...CzechDreamin
 
How we should include Devops Center to get happy developers?, David Fernandez...
How we should include Devops Center to get happy developers?, David Fernandez...How we should include Devops Center to get happy developers?, David Fernandez...
How we should include Devops Center to get happy developers?, David Fernandez...CzechDreamin
 
Streamline Your Integration with Salesforce’s Composite API: A Consultant’s G...
Streamline Your Integration with Salesforce’s Composite API: A Consultant’s G...Streamline Your Integration with Salesforce’s Composite API: A Consultant’s G...
Streamline Your Integration with Salesforce’s Composite API: A Consultant’s G...CzechDreamin
 
Architecting for Analytics, Aaron Crear
Architecting for Analytics, Aaron CrearArchitecting for Analytics, Aaron Crear
Architecting for Analytics, Aaron CrearCzechDreamin
 
Ape to API, Filip Dousek
Ape to API, Filip DousekApe to API, Filip Dousek
Ape to API, Filip DousekCzechDreamin
 
Push Upgrades, The last mile of Salesforce DevOps, Manuel Moya
Push Upgrades, The last mile of Salesforce DevOps, Manuel MoyaPush Upgrades, The last mile of Salesforce DevOps, Manuel Moya
Push Upgrades, The last mile of Salesforce DevOps, Manuel MoyaCzechDreamin
 
How do you know you’re solving the right problem? Design Thinking for Salesfo...
How do you know you’re solving the right problem? Design Thinking for Salesfo...How do you know you’re solving the right problem? Design Thinking for Salesfo...
How do you know you’re solving the right problem? Design Thinking for Salesfo...CzechDreamin
 
ChatGPT … How Does it Flow?, Mark Jones
ChatGPT … How Does it Flow?, Mark JonesChatGPT … How Does it Flow?, Mark Jones
ChatGPT … How Does it Flow?, Mark JonesCzechDreamin
 
Real-time communication with Account Engagement (Pardot). Marketers meet deve...
Real-time communication with Account Engagement (Pardot). Marketers meet deve...Real-time communication with Account Engagement (Pardot). Marketers meet deve...
Real-time communication with Account Engagement (Pardot). Marketers meet deve...CzechDreamin
 
Black Hat Session: Exploring and Exploiting Aura based Experiences, Christian...
Black Hat Session: Exploring and Exploiting Aura based Experiences, Christian...Black Hat Session: Exploring and Exploiting Aura based Experiences, Christian...
Black Hat Session: Exploring and Exploiting Aura based Experiences, Christian...CzechDreamin
 

More from CzechDreamin (20)

10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová
 
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
SOQL 201 for Admins & Developers: Slice & Dice Your Org’s Data With Aggregate...
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
 
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone KomSalesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
 
Powerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara LaskowskaPowerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara Laskowska
 
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi IbrahimzadeFree and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
 
AI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekAI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří Karpíšek
 
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya HalderCustom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
 
Salesforce Forecasting: Evolution, Implementation and Best Practices, Christi...
Salesforce Forecasting: Evolution, Implementation and Best Practices, Christi...Salesforce Forecasting: Evolution, Implementation and Best Practices, Christi...
Salesforce Forecasting: Evolution, Implementation and Best Practices, Christi...
 
Supercharge Salesforce Marketing Cloud: The Ultimate Apps Guide, Cyril Louis ...
Supercharge Salesforce Marketing Cloud: The Ultimate Apps Guide, Cyril Louis ...Supercharge Salesforce Marketing Cloud: The Ultimate Apps Guide, Cyril Louis ...
Supercharge Salesforce Marketing Cloud: The Ultimate Apps Guide, Cyril Louis ...
 
How we should include Devops Center to get happy developers?, David Fernandez...
How we should include Devops Center to get happy developers?, David Fernandez...How we should include Devops Center to get happy developers?, David Fernandez...
How we should include Devops Center to get happy developers?, David Fernandez...
 
Streamline Your Integration with Salesforce’s Composite API: A Consultant’s G...
Streamline Your Integration with Salesforce’s Composite API: A Consultant’s G...Streamline Your Integration with Salesforce’s Composite API: A Consultant’s G...
Streamline Your Integration with Salesforce’s Composite API: A Consultant’s G...
 
Architecting for Analytics, Aaron Crear
Architecting for Analytics, Aaron CrearArchitecting for Analytics, Aaron Crear
Architecting for Analytics, Aaron Crear
 
Ape to API, Filip Dousek
Ape to API, Filip DousekApe to API, Filip Dousek
Ape to API, Filip Dousek
 
Push Upgrades, The last mile of Salesforce DevOps, Manuel Moya
Push Upgrades, The last mile of Salesforce DevOps, Manuel MoyaPush Upgrades, The last mile of Salesforce DevOps, Manuel Moya
Push Upgrades, The last mile of Salesforce DevOps, Manuel Moya
 
How do you know you’re solving the right problem? Design Thinking for Salesfo...
How do you know you’re solving the right problem? Design Thinking for Salesfo...How do you know you’re solving the right problem? Design Thinking for Salesfo...
How do you know you’re solving the right problem? Design Thinking for Salesfo...
 
ChatGPT … How Does it Flow?, Mark Jones
ChatGPT … How Does it Flow?, Mark JonesChatGPT … How Does it Flow?, Mark Jones
ChatGPT … How Does it Flow?, Mark Jones
 
Real-time communication with Account Engagement (Pardot). Marketers meet deve...
Real-time communication with Account Engagement (Pardot). Marketers meet deve...Real-time communication with Account Engagement (Pardot). Marketers meet deve...
Real-time communication with Account Engagement (Pardot). Marketers meet deve...
 
Black Hat Session: Exploring and Exploiting Aura based Experiences, Christian...
Black Hat Session: Exploring and Exploiting Aura based Experiences, Christian...Black Hat Session: Exploring and Exploiting Aura based Experiences, Christian...
Black Hat Session: Exploring and Exploiting Aura based Experiences, Christian...
 

Recently uploaded

IESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIES VE
 
Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Patrick Viafore
 
Designing for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastDesigning for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastUXDXConf
 
Demystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyDemystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyJohn Staveley
 
Strategic AI Integration in Engineering Teams
Strategic AI Integration in Engineering TeamsStrategic AI Integration in Engineering Teams
Strategic AI Integration in Engineering TeamsUXDXConf
 
Buy Epson EcoTank L3210 Colour Printer Online.pdf
Buy Epson EcoTank L3210 Colour Printer Online.pdfBuy Epson EcoTank L3210 Colour Printer Online.pdf
Buy Epson EcoTank L3210 Colour Printer Online.pdfEasyPrinterHelp
 
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfHow Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfFIDO Alliance
 
Intro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераIntro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераMark Opanasiuk
 
ECS 2024 Teams Premium - Pretty Secure
ECS 2024   Teams Premium - Pretty SecureECS 2024   Teams Premium - Pretty Secure
ECS 2024 Teams Premium - Pretty SecureFemke de Vroome
 
IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024IoTAnalytics
 
Speed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in MinutesSpeed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in Minutesconfluent
 
THE BEST IPTV in GERMANY for 2024: IPTVreel
THE BEST IPTV in  GERMANY for 2024: IPTVreelTHE BEST IPTV in  GERMANY for 2024: IPTVreel
THE BEST IPTV in GERMANY for 2024: IPTVreelreely ones
 
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...FIDO Alliance
 
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfLinux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfFIDO Alliance
 
The UX of Automation by AJ King, Senior UX Researcher, Ocado
The UX of Automation by AJ King, Senior UX Researcher, OcadoThe UX of Automation by AJ King, Senior UX Researcher, Ocado
The UX of Automation by AJ King, Senior UX Researcher, OcadoUXDXConf
 
Syngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdfSyngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdfSyngulon
 
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...FIDO Alliance
 
UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2DianaGray10
 
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfIntroduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfFIDO Alliance
 
A Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System StrategyA Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System StrategyUXDXConf
 

Recently uploaded (20)

IESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIESVE for Early Stage Design and Planning
IESVE for Early Stage Design and Planning
 
Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024
 
Designing for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastDesigning for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at Comcast
 
Demystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyDemystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John Staveley
 
Strategic AI Integration in Engineering Teams
Strategic AI Integration in Engineering TeamsStrategic AI Integration in Engineering Teams
Strategic AI Integration in Engineering Teams
 
Buy Epson EcoTank L3210 Colour Printer Online.pdf
Buy Epson EcoTank L3210 Colour Printer Online.pdfBuy Epson EcoTank L3210 Colour Printer Online.pdf
Buy Epson EcoTank L3210 Colour Printer Online.pdf
 
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfHow Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
 
Intro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераIntro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджера
 
ECS 2024 Teams Premium - Pretty Secure
ECS 2024   Teams Premium - Pretty SecureECS 2024   Teams Premium - Pretty Secure
ECS 2024 Teams Premium - Pretty Secure
 
IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024
 
Speed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in MinutesSpeed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in Minutes
 
THE BEST IPTV in GERMANY for 2024: IPTVreel
THE BEST IPTV in  GERMANY for 2024: IPTVreelTHE BEST IPTV in  GERMANY for 2024: IPTVreel
THE BEST IPTV in GERMANY for 2024: IPTVreel
 
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
 
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfLinux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
 
The UX of Automation by AJ King, Senior UX Researcher, Ocado
The UX of Automation by AJ King, Senior UX Researcher, OcadoThe UX of Automation by AJ King, Senior UX Researcher, Ocado
The UX of Automation by AJ King, Senior UX Researcher, Ocado
 
Syngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdfSyngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdf
 
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
 
UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2
 
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfIntroduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
 
A Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System StrategyA Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System Strategy
 

Bypassing Validation Rules Through Automation, Aaron Crear

  • 1. Bypassing Validations Rules Through Automation Aaron Crear
  • 2. #CD19 Salesforce Goals Achieved Services: ● Administration ● Development ● Training Aaron Crear Founder & Principal
  • 3. #CD19 Salesforce Changed my Life! Recovering Sales Manager - User since 2009 - Began self-learning to make my job easier - Became default Salesforce Admin Rolled the dice in June 2016, accomplishments to date - Began with Trailhead - 5 x Salesforce Certified - Full-time consulting practice with book of clients - Speaker at Dreamforce, Big Sky Dreamin’, Czech Dreamin’, dreamOle’, Florida Dreamin’ French Touch Dreamin’, Phillyforce, Midwest Dreamin’, Snowforce, Southeast Dreamin’, True North Dreamin’ - Lowell, MA User Group Leader, Northeast Dreamin’ Co-Organizer Why am I here?
  • 4. #CD19 Validation rules are a useful method of maintaining data hygiene, orders of operations and ensuring that users follow the correct work processes. However, at times they can be a hinderance to being productive. In this presentation we will show you how to allow users to bypass validation rules to update records through their activities without allowing them to manually update records. Abstract
  • 5. #CD19 Allow user actions to update records, but no manual editing of field. Hat-Trick Consulting wants to prevent sales reps from manually editing the Contact Status field. This field should only be updated when the rep has logged an activity to the contact. The type of activity dictates what status to change the record to. Use Case # 1
  • 6. #CD19 Unsuccessful ● Add a validation rule that prevents reps from editing the contact status field ● Make the contact status field read only on the page layout ● Create automation that simply updates the field based on activity creation Result: Since the user is firing the automation from the record, they must have edit access on the page layout. Using this method causes an error for the automation, thus preventing them from logging the activity. Automation also catches on the validation rule if you try to leave the field as editable on the page layout. First-thought Solutions
  • 7. #CD19 Successful To allow for the use case of prohibiting manual editing of the Contact Status field, while allowing related activities to update this field we will use a combination of functions that will include: ■ 1 Validation Rule ■ 4 Custom fields ■ 3 Process Builders Actual Solution
  • 8. #CD19 Contact Object We will add four custom checkbox fields Contact object. These will be used with each of the three process builders. These fields can be left off the user page layout, however users need edit access. Leaving them on an admin layout is a good way to test and troubleshoot. Bypass_Validation__c Fire_Process_Builder__c SAL_Task__c SQL_Task__c Custom Fields
  • 9. #CD19 Contact Object We will add a new validation rule on the Contact object that prevents users from editing the Contact Status field unless the new custom field Bypass Validation equals true. Validation Rule
  • 10. #CD19 Set Bypass This process builder will set the Bypass Validation and either SAL Task or SQL Task on the Contact record, which essentially disables the validation rule. You can choose your own criteria, but this would run on either the Task, Event or both. Process Builder #1
  • 11. #CD19 Update Contact Status This process builder will update the Contact Status and Fire Process Builder fields on the Contact record. The criteria is simply that the Bypass Validation field is true and either SAL Task or SQL Task are also true. Process Builder #2
  • 12. #CD19 Clear Checkboxes This process builder will clear the Bypass Validation, Fire Process Builder, SAL Task and SQL Task fields. This re-establishes the validation rule from being bypassed. The criteria is that both the Bypass Validation and Fire Process Builder fields are true. Be sure to update theses fields in separate immediate actions. Process Builder #3
  • 13. #CD19
  • 14. #CD19 Allow user actions to update records, but no manual editing of field. Hat-Trick Consulting wants to prevent service reps from manually changing the case status field to “working”. This field should only be updated when the rep has logged a specific activity to the case. Use Case # 2
  • 15. #CD19 Unsuccessful ● Add a validation rule that prevents reps from moving the case status field to “working” ● Make the case status field read only on the page layout ● Create automation that simply updates the field based on activity creation Result: Since the user is firing the automation from the record, they must have edit access on the page layout. Using this method causes an error for the automation, thus preventing them from logging the activity. Automation also catches on the validation rule if you try to leave the field as editable on the page layout. First-thought Solutions
  • 16. #CD19 Successful To allow for the use case of prohibiting manually moving the Case Status field to “working”, while allowing related activities to update this field we will use a combination of functions that will include: ■ 1 Validation Rule ■ 1 Custom field ■ 1 Process Builder ■ 1 Flow Actual Solution
  • 17. #CD19 Case Object We will add a custom checkbox field on the Case object. This will be used within the Flow an essentially disables our validation rule. This field can be left off the user page layout, however users need edit access. Leaving them on an admin layout is a good way to test and troubleshoot. Bypass_Validation__c Custom Field
  • 18. #CD19 Case Object We will add a new validation rule on the Contact object that prevents users from moving the Status field to “working” unless the new custom field Bypass Validation equals true. Validation Rule
  • 19. #CD19 Launch Flow This process builder will fire the Flow when a specific Task is related to the Case. You can choose your own criteria, but this would run on either the Task, Event or both. Process Builder
  • 20. #CD19 Set Bypass, Change Status, Remove Bypass This Flow will set the Bypass Validation field to true, then change the Status to “working”, then set the Bypass Validation to false. A pause between separate record update elements is required. Flow
  • 21. #CD19
  • 22. #CD19 Aaron Crear Founder & Principal acrear@hat-trickconsutling.com @aaroncrear Other Tips • Turn on field history tracking for the fields used in the automation • Develop audit reports • Test, re-test and test again • Create notifications or dashboard components based on the contact status change