SlideShare ist ein Scribd-Unternehmen logo
1 von 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!

Weitere ähnliche Inhalte

Ähnlich wie Bypassing Validation Rules Through Automation, Aaron Crear

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
 
Men Salon management system project and ppt
Men Salon management system project and pptMen Salon management system project and ppt
Men Salon management system project and pptpavisubashsp
 
Warranty processing recall bbp
Warranty processing recall bbpWarranty processing recall bbp
Warranty processing recall bbpvinayk_35919
 
ETRS Proposal - Acme Rental
ETRS Proposal - Acme RentalETRS Proposal - Acme Rental
ETRS Proposal - Acme RentalEvettMarban1
 
Process Automation Showdown Session 2
Process Automation Showdown Session 2Process Automation Showdown Session 2
Process Automation Showdown Session 2Michael Gill
 

Ähnlich wie Bypassing Validation Rules Through Automation, Aaron Crear (20)

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
 
Men Salon management system project and ppt
Men Salon management system project and pptMen Salon management system project and ppt
Men Salon management system project and ppt
 
Warranty processing recall bbp
Warranty processing recall bbpWarranty processing recall bbp
Warranty processing recall bbp
 
ETRS Proposal - Acme Rental
ETRS Proposal - Acme RentalETRS Proposal - Acme Rental
ETRS Proposal - Acme Rental
 
Process Automation Showdown Session 2
Process Automation Showdown Session 2Process Automation Showdown Session 2
Process Automation Showdown Session 2
 

Mehr von 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
 
Sales methodology for Salesforce Opportunity, Georgy Avilov
Sales methodology for Salesforce Opportunity, Georgy AvilovSales methodology for Salesforce Opportunity, Georgy Avilov
Sales methodology for Salesforce Opportunity, Georgy AvilovCzechDreamin
 
5 key ideas for robust and flexible REST API integrations with Apex, Lucian M...
5 key ideas for robust and flexible REST API integrations with Apex, Lucian M...5 key ideas for robust and flexible REST API integrations with Apex, Lucian M...
5 key ideas for robust and flexible REST API integrations with Apex, Lucian M...CzechDreamin
 
Report & Dashboard REST API : Get your report accessible anywhere !, Romain Q...
Report & Dashboard REST API : Get your report accessible anywhere !, Romain Q...Report & Dashboard REST API : Get your report accessible anywhere !, Romain Q...
Report & Dashboard REST API : Get your report accessible anywhere !, Romain Q...CzechDreamin
 
No Such Thing as Best Practice in Design, Nati Asher and Pat Fragoso
No Such Thing as Best Practice in Design, Nati Asher and Pat FragosoNo Such Thing as Best Practice in Design, Nati Asher and Pat Fragoso
No Such Thing as Best Practice in Design, Nati Asher and Pat FragosoCzechDreamin
 
Why do you Need to Migrate to Salesforce Flow?, Andrew Cook
Why do you Need to Migrate to Salesforce Flow?, Andrew CookWhy do you Need to Migrate to Salesforce Flow?, Andrew Cook
Why do you Need to Migrate to Salesforce Flow?, Andrew CookCzechDreamin
 
Be kind to your future admin self, Silvia Denaro & Nathaniel Sombu
Be kind to your future admin self, Silvia Denaro & Nathaniel SombuBe kind to your future admin self, Silvia Denaro & Nathaniel Sombu
Be kind to your future admin self, Silvia Denaro & Nathaniel SombuCzechDreamin
 
Monitoring Automation Performance in Marketing Cloud Engagement, Daniela Vrbk...
Monitoring Automation Performance in Marketing Cloud Engagement, Daniela Vrbk...Monitoring Automation Performance in Marketing Cloud Engagement, Daniela Vrbk...
Monitoring Automation Performance in Marketing Cloud Engagement, Daniela Vrbk...CzechDreamin
 
The minimum-profile approach – the modern way to design an efficient security...
The minimum-profile approach – the modern way to design an efficient security...The minimum-profile approach – the modern way to design an efficient security...
The minimum-profile approach – the modern way to design an efficient security...CzechDreamin
 
Restriction Rules – The Whole Picture, Louise Lockie
Restriction Rules – The Whole Picture, Louise LockieRestriction Rules – The Whole Picture, Louise Lockie
Restriction Rules – The Whole Picture, Louise LockieCzechDreamin
 

Mehr von CzechDreamin (20)

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...
 
Sales methodology for Salesforce Opportunity, Georgy Avilov
Sales methodology for Salesforce Opportunity, Georgy AvilovSales methodology for Salesforce Opportunity, Georgy Avilov
Sales methodology for Salesforce Opportunity, Georgy Avilov
 
5 key ideas for robust and flexible REST API integrations with Apex, Lucian M...
5 key ideas for robust and flexible REST API integrations with Apex, Lucian M...5 key ideas for robust and flexible REST API integrations with Apex, Lucian M...
5 key ideas for robust and flexible REST API integrations with Apex, Lucian M...
 
Report & Dashboard REST API : Get your report accessible anywhere !, Romain Q...
Report & Dashboard REST API : Get your report accessible anywhere !, Romain Q...Report & Dashboard REST API : Get your report accessible anywhere !, Romain Q...
Report & Dashboard REST API : Get your report accessible anywhere !, Romain Q...
 
No Such Thing as Best Practice in Design, Nati Asher and Pat Fragoso
No Such Thing as Best Practice in Design, Nati Asher and Pat FragosoNo Such Thing as Best Practice in Design, Nati Asher and Pat Fragoso
No Such Thing as Best Practice in Design, Nati Asher and Pat Fragoso
 
Why do you Need to Migrate to Salesforce Flow?, Andrew Cook
Why do you Need to Migrate to Salesforce Flow?, Andrew CookWhy do you Need to Migrate to Salesforce Flow?, Andrew Cook
Why do you Need to Migrate to Salesforce Flow?, Andrew Cook
 
Be kind to your future admin self, Silvia Denaro & Nathaniel Sombu
Be kind to your future admin self, Silvia Denaro & Nathaniel SombuBe kind to your future admin self, Silvia Denaro & Nathaniel Sombu
Be kind to your future admin self, Silvia Denaro & Nathaniel Sombu
 
Monitoring Automation Performance in Marketing Cloud Engagement, Daniela Vrbk...
Monitoring Automation Performance in Marketing Cloud Engagement, Daniela Vrbk...Monitoring Automation Performance in Marketing Cloud Engagement, Daniela Vrbk...
Monitoring Automation Performance in Marketing Cloud Engagement, Daniela Vrbk...
 
The minimum-profile approach – the modern way to design an efficient security...
The minimum-profile approach – the modern way to design an efficient security...The minimum-profile approach – the modern way to design an efficient security...
The minimum-profile approach – the modern way to design an efficient security...
 
Restriction Rules – The Whole Picture, Louise Lockie
Restriction Rules – The Whole Picture, Louise LockieRestriction Rules – The Whole Picture, Louise Lockie
Restriction Rules – The Whole Picture, Louise Lockie
 

Kürzlich hochgeladen

Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 

Kürzlich hochgeladen (20)

Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 

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