SlideShare a Scribd company logo
1 of 20
Record-Triggered
Automations
Tom Leddy
Architect Evangelist
Architect Relations, Salesforce
@tomruns_262
This presentation contains forward-looking statements about, among other things, trend analyses and future events, future financial performance, anticipated growth, industry
prospects, environmental, social and governance goals, and the anticipated benefits of acquired companies. The achievement or success of the matters covered by such
forward-looking statements involves risks, uncertainties and assumptions. If any such risks or uncertainties materialize or if any of the assumptions prove incorrect, Salesforce’s
results could differ materially from the results expressed or implied by these forward-looking statements. The risks and uncertainties referred to above include those factors
discussed in Salesforce’s reports filed from time to time with the Securities and Exchange Commission, including, but not limited to: the impact of, and actions we may take in
response to, the COVID-19 pandemic, related public health measures and resulting economic downturn and market volatility; our ability to maintain security levels and service
performance meeting the expectations of our customers, and the resources and costs required to avoid unanticipated downtime and prevent, detect and remediate
performance degradation and security breaches; the expenses associated with our data centers and third-party infrastructure providers; our ability to secure additional data
center capacity; our reliance on third-party hardware, software and platform providers; the effect of evolving domestic and foreign government regulations, including those
related to the provision of services on the Internet, those related to accessing the Internet, and those addressing data privacy, cross-border data transfers and import and export
controls; current and potential litigation involving us or our industry, including litigation involving acquired entities such as Tableau Software, Inc. and Slack Technologies, Inc.,
and the resolution or settlement thereof; regulatory developments and regulatory investigations involving us or affecting our industry; our ability to successfully introduce new
services and product features, including any efforts to expand our services; the success of our strategy of acquiring or making investments in complementary businesses, joint
ventures, services, technologies and intellectual property rights; our ability to complete, on a timely basis or at all, announced transactions; our ability to realize the benefits
from acquisitions, strategic partnerships, joint ventures and investments, including our July 2021 acquisition of Slack Technologies, Inc., and successfully integrate acquired
businesses and technologies; our ability to compete in the markets in which we participate; the success of our business strategy and our plan to build our business, including
our strategy to be a leading provider of enterprise cloud computing applications and platforms; our ability to execute our business plans; our ability to continue to grow
unearned revenue and remaining performance obligation; the pace of change and innovation in enterprise cloud computing services; the seasonal nature of our sales cycles;
our ability to limit customer attrition and costs related to those efforts; the success of our international expansion strategy; the demands on our personnel and infrastructure
resulting from significant growth in our customer base and operations, including as a result of acquisitions; our ability to preserve our workplace culture, including as a result of
our decisions regarding our current and future office environments or work-from-home policies; our dependency on the development and maintenance of the infrastructure of
the Internet; our real estate and office facilities strategy and related costs and uncertainties; fluctuations in, and our ability to predict, our operating results and cash flows; the
variability in our results arising from the accounting for term license revenue products; the performance and fair value of our investments in complementary businesses through
our strategic investment portfolio; the impact of future gains or losses from our strategic investment portfolio, including gains or losses from overall market conditions that may
affect the publicly traded companies within our strategic investment portfolio; our ability to protect our intellectual property rights; our ability to develop our brands; the impact
of foreign currency exchange rate and interest rate fluctuations on our results; the valuation of our deferred tax assets and the release of related valuation allowances; the
potential availability of additional tax assets in the future; the impact of new accounting pronouncements and tax laws; uncertainties affecting our ability to estimate our tax
rate; uncertainties regarding our tax obligations in connection with potential jurisdictional transfers of intellectual property, including the tax rate, the timing of the transfer and
the value of such transferred intellectual property; uncertainties regarding the effect of general economic and market conditions; the impact of geopolitical events; uncertainties
regarding the impact of expensing stock options and other equity awards; the sufficiency of our capital resources; our ability to comply with our debt covenants and lease
obligations; and the impact of climate change, natural disasters and actual or threatened public health emergencies, including the ongoing COVID-19 pandemic.
Forward-Looking Statements
092821
Agenda
Architect Relations Team Overview
Record Triggered Automations - Key Takeaways
Record Triggered Automations - Common Trigger Use Cases
Design Considerations
Additional Resources
1
2
3
4
5
We activate, empower
and inspire architects.
Trusted advisors, who unlock new opportunities
for Salesforce.
Experienced practitioners, key to short-term and
long-term customer success.
Salesforce Architect Relations
Our vision
Architect Relations Team
Zayne Turner
Architect Relations,
Salesforce
Marc Braga
Architect Relations,
Salesforce
Susannah Plaisted
Architect Relations,
Salesforce
Marissa Lowe
Architect Relations,
Salesforce
Tom Leddy
Architect Relations,
Salesforce
Record-Triggered
Automation Overview
Key Takeaways
● Flow and Apex are the preferred no-code and pro-code solutions for triggered automations
● Use Before-Save flow triggers for same-record field updates
● Use After-Save flow triggers for other declarative automations
● Use Apex for high performance batch processing or highly complex logic
● Utilize sub-flows to make your automations reusable and easier to maintain
Common Trigger
Use-Cases
Common Trigger Use-Cases
Before-Save Flow
Trigger
After-Save Flow
Trigger
After-Save Flow
Trigger + Apex
Apex Triggers
Same-Record Field Updates Available Not Ideal Not Ideal Available
High Performance Batch
Processing
Not Ideal Not Ideal Not Ideal Available
Cross-Object CRUD Not Available Available Available Available
Asynchronous Processing Not Available Available Available Available
Complex List Processing Not Available Not Ideal Available Available
Custom Validation Errors Not Available Not Available Not Available Available
Same-Record Field Updates
Before-Save Flow Trigger After-Save Flow Trigger
After-Save Flow Trigger
+ Apex
Apex Triggers
Available Not Ideal Not Ideal Available
● Stop implementing Same-Record field updates in Workflow Rules
and Process Builder Processes
● Use Before-Save flow triggers or Before-Save Apex Triggers instead
High-Performance Batch Processing
Before-Save Flow Trigger After-Save Flow Trigger
After-Save Flow Trigger
+ Apex
Apex Triggers
Not Ideal Not Ideal Not Ideal Available
● Example Scenarios:
○ Defining and evaluating complicated logical expressions or formulas
○ Loading and transforming data from large numbers of records,
looping over loops of loops.
○ Anything requiring Map-like or Set-like functionalities.
○ Transaction savepoints
Cross-Object CRUD
Before-Save Flow Trigger After-Save Flow Trigger
After-Save Flow Trigger
+ Apex
Apex Triggers
Not Available Available Available Available
Creating, updating, or deleting a different record (other than the
original record that triggered the transaction) requires a database
operation, no matter what tool you use.
Complex List Processing
Before-Save Flow Trigger After-Save Flow Trigger
After-Save Flow Trigger +
Apex
Apex Triggers
Not Available Not Ideal Available Available
● Some common list-processing tasks, such as in-place data
transforms, sorts, and filters can be overly cumbersome to achieve
in Flow while being much more straightforward (and more
performant) in Apex.
● Consider Invokable Apex
Asynchronous Processing
Before-Save Flow Trigger After-Save Flow Trigger
After-Save Flow Trigger +
Apex
Apex Triggers
Not Available Available Available Available
● Both Flow and Apex can execute logic asynchronously when
○ Separate transactions are required
○ External callouts are needed
○ Processing will just simply take too long.
Custom Validation Errors
Before-Save Flow Trigger After-Save Flow Trigger
After-Save Flow Trigger +
Apex
Apex Triggers
Not Available Not Available Not Available Available
● Flow provides no way to either prevent DML operations from
committing, or to throw custom errors
● The addError() Apex method is not supported when executed from
Flow via Apex invocable method.
Design Considerations
● Performance and ordering used to be the main reasons
to recommend building one process per object/trigger.
● Consolidating an automation into a single flow has no
major impact compared to multiple flows, due to:
○ Entry Conditions
○ Flow Trigger Ordering
Create / Update
/ Delete Records
1 DML for the Entire
Batch
Get Records
1 SOQL for the
entire batch
Action Calls
Depends on how
the action is
implemented.
Flow Bulkification
Don’t Include DML & SOQL in loops!
Loops
Don’t consume
DML or SOQL
directly, but
execute each
contained
element serially.
Additional Resources
● Architect’s Guide to Record-Triggered Automation on
Salesforce
● architect.salesforce.com
● Salesforce Architects Blog
● Salesforce Architects YouTube
Fort Worth Community - Record Triggered Automations.pdf

More Related Content

Similar to Fort Worth Community - Record Triggered Automations.pdf

Salesforce Winter '23 Release Highlights.pptx
Salesforce Winter '23 Release Highlights.pptxSalesforce Winter '23 Release Highlights.pptx
Salesforce Winter '23 Release Highlights.pptxOm Prakash
 
Salesforce Miami User Group Event - 3rd Quarter
Salesforce Miami User Group Event - 3rd QuarterSalesforce Miami User Group Event - 3rd Quarter
Salesforce Miami User Group Event - 3rd QuarterSkyPlanner
 
Salesforce Architect Group, Frederick, United States February 2023 - Inaugura...
Salesforce Architect Group, Frederick, United States February 2023 - Inaugura...Salesforce Architect Group, Frederick, United States February 2023 - Inaugura...
Salesforce Architect Group, Frederick, United States February 2023 - Inaugura...NadinaLisbon1
 
MuleSoft Composer - OKC Oklahoma City MuleSoft Meetup 11/11/21
MuleSoft Composer - OKC Oklahoma City MuleSoft Meetup 11/11/21MuleSoft Composer - OKC Oklahoma City MuleSoft Meetup 11/11/21
MuleSoft Composer - OKC Oklahoma City MuleSoft Meetup 11/11/21DianeKesler2
 
First Steps to Salesforce Release Management & DevOps [Salesforce User Group,...
First Steps to Salesforce Release Management & DevOps [Salesforce User Group,...First Steps to Salesforce Release Management & DevOps [Salesforce User Group,...
First Steps to Salesforce Release Management & DevOps [Salesforce User Group,...Anna Loughnan Colquhoun
 
Orchestrator and Flow in Slack: Antoine Cabot - Jacksonville Architects - Sal...
Orchestrator and Flow in Slack: Antoine Cabot - Jacksonville Architects - Sal...Orchestrator and Flow in Slack: Antoine Cabot - Jacksonville Architects - Sal...
Orchestrator and Flow in Slack: Antoine Cabot - Jacksonville Architects - Sal...A. Engin Utkan
 
Winter 21 Developer Highlights for Salesforce
Winter 21 Developer Highlights for SalesforceWinter 21 Developer Highlights for Salesforce
Winter 21 Developer Highlights for SalesforcePeter Chittum
 
Sample Gallery: Reference Code and Best Practices for Salesforce Developers
Sample Gallery: Reference Code and Best Practices for Salesforce DevelopersSample Gallery: Reference Code and Best Practices for Salesforce Developers
Sample Gallery: Reference Code and Best Practices for Salesforce DevelopersSalesforce Developers
 
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesMuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesManik S Magar
 
SFWelly user group spring '22 release highlights with Mel Macdonald
SFWelly user group spring '22 release highlights with Mel MacdonaldSFWelly user group spring '22 release highlights with Mel Macdonald
SFWelly user group spring '22 release highlights with Mel MacdonaldAnna Loughnan Colquhoun
 
Nonprofit User Group.pdf
Nonprofit User Group.pdfNonprofit User Group.pdf
Nonprofit User Group.pdfMarianaLemus7
 
#ImpactSalesforceSaturday: Prepare for Salesforce Certified Heroku Architectu...
#ImpactSalesforceSaturday: Prepare for Salesforce Certified Heroku Architectu...#ImpactSalesforceSaturday: Prepare for Salesforce Certified Heroku Architectu...
#ImpactSalesforceSaturday: Prepare for Salesforce Certified Heroku Architectu...New Delhi Salesforce Developer Group
 
MuleSoft Online Meetup Group - B2B Crash Course: PM Insider Lecture
MuleSoft Online Meetup Group - B2B Crash Course: PM Insider LectureMuleSoft Online Meetup Group - B2B Crash Course: PM Insider Lecture
MuleSoft Online Meetup Group - B2B Crash Course: PM Insider LectureManik S Magar
 
Bangkok Admin Group TrailheaDX 2020 Global Gathering v2
Bangkok Admin Group TrailheaDX 2020 Global Gathering v2Bangkok Admin Group TrailheaDX 2020 Global Gathering v2
Bangkok Admin Group TrailheaDX 2020 Global Gathering v2Jihun Jung
 
Local development with Open Source Base Components
Local development with Open Source Base ComponentsLocal development with Open Source Base Components
Local development with Open Source Base ComponentsSalesforce Developers
 
DevOps Center_ArchitectGroup
DevOps Center_ArchitectGroup DevOps Center_ArchitectGroup
DevOps Center_ArchitectGroup AmeyKulkarni84
 
Frisco RPA Meetup- October 28th,2022.pdf
Frisco RPA Meetup- October 28th,2022.pdfFrisco RPA Meetup- October 28th,2022.pdf
Frisco RPA Meetup- October 28th,2022.pdfLavinaDesaiAmbani
 

Similar to Fort Worth Community - Record Triggered Automations.pdf (20)

Salesforce Winter '23 Release Highlights.pptx
Salesforce Winter '23 Release Highlights.pptxSalesforce Winter '23 Release Highlights.pptx
Salesforce Winter '23 Release Highlights.pptx
 
Salesforce Miami User Group Event - 3rd Quarter
Salesforce Miami User Group Event - 3rd QuarterSalesforce Miami User Group Event - 3rd Quarter
Salesforce Miami User Group Event - 3rd Quarter
 
Salesforce Architect Group, Frederick, United States February 2023 - Inaugura...
Salesforce Architect Group, Frederick, United States February 2023 - Inaugura...Salesforce Architect Group, Frederick, United States February 2023 - Inaugura...
Salesforce Architect Group, Frederick, United States February 2023 - Inaugura...
 
MuleSoft Composer - OKC Oklahoma City MuleSoft Meetup 11/11/21
MuleSoft Composer - OKC Oklahoma City MuleSoft Meetup 11/11/21MuleSoft Composer - OKC Oklahoma City MuleSoft Meetup 11/11/21
MuleSoft Composer - OKC Oklahoma City MuleSoft Meetup 11/11/21
 
First Steps to Salesforce Release Management & DevOps [Salesforce User Group,...
First Steps to Salesforce Release Management & DevOps [Salesforce User Group,...First Steps to Salesforce Release Management & DevOps [Salesforce User Group,...
First Steps to Salesforce Release Management & DevOps [Salesforce User Group,...
 
Orchestrator and Flow in Slack: Antoine Cabot - Jacksonville Architects - Sal...
Orchestrator and Flow in Slack: Antoine Cabot - Jacksonville Architects - Sal...Orchestrator and Flow in Slack: Antoine Cabot - Jacksonville Architects - Sal...
Orchestrator and Flow in Slack: Antoine Cabot - Jacksonville Architects - Sal...
 
Winter 21 Developer Highlights for Salesforce
Winter 21 Developer Highlights for SalesforceWinter 21 Developer Highlights for Salesforce
Winter 21 Developer Highlights for Salesforce
 
Sample Gallery: Reference Code and Best Practices for Salesforce Developers
Sample Gallery: Reference Code and Best Practices for Salesforce DevelopersSample Gallery: Reference Code and Best Practices for Salesforce Developers
Sample Gallery: Reference Code and Best Practices for Salesforce Developers
 
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesMuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
 
SFWelly user group spring '22 release highlights with Mel Macdonald
SFWelly user group spring '22 release highlights with Mel MacdonaldSFWelly user group spring '22 release highlights with Mel Macdonald
SFWelly user group spring '22 release highlights with Mel Macdonald
 
Nonprofit User Group.pdf
Nonprofit User Group.pdfNonprofit User Group.pdf
Nonprofit User Group.pdf
 
Release Winter 22 FR
Release Winter 22 FRRelease Winter 22 FR
Release Winter 22 FR
 
Winter 22 release
Winter 22 releaseWinter 22 release
Winter 22 release
 
#ImpactSalesforceSaturday: Prepare for Salesforce Certified Heroku Architectu...
#ImpactSalesforceSaturday: Prepare for Salesforce Certified Heroku Architectu...#ImpactSalesforceSaturday: Prepare for Salesforce Certified Heroku Architectu...
#ImpactSalesforceSaturday: Prepare for Salesforce Certified Heroku Architectu...
 
MuleSoft Online Meetup Group - B2B Crash Course: PM Insider Lecture
MuleSoft Online Meetup Group - B2B Crash Course: PM Insider LectureMuleSoft Online Meetup Group - B2B Crash Course: PM Insider Lecture
MuleSoft Online Meetup Group - B2B Crash Course: PM Insider Lecture
 
Bangkok Admin Group TrailheaDX 2020 Global Gathering v2
Bangkok Admin Group TrailheaDX 2020 Global Gathering v2Bangkok Admin Group TrailheaDX 2020 Global Gathering v2
Bangkok Admin Group TrailheaDX 2020 Global Gathering v2
 
TDX Global Gathering - Wellington UG
TDX Global Gathering - Wellington UGTDX Global Gathering - Wellington UG
TDX Global Gathering - Wellington UG
 
Local development with Open Source Base Components
Local development with Open Source Base ComponentsLocal development with Open Source Base Components
Local development with Open Source Base Components
 
DevOps Center_ArchitectGroup
DevOps Center_ArchitectGroup DevOps Center_ArchitectGroup
DevOps Center_ArchitectGroup
 
Frisco RPA Meetup- October 28th,2022.pdf
Frisco RPA Meetup- October 28th,2022.pdfFrisco RPA Meetup- October 28th,2022.pdf
Frisco RPA Meetup- October 28th,2022.pdf
 

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Zilliz
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Zilliz
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 

Recently uploaded (20)

Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 

Fort Worth Community - Record Triggered Automations.pdf

  • 2. This presentation contains forward-looking statements about, among other things, trend analyses and future events, future financial performance, anticipated growth, industry prospects, environmental, social and governance goals, and the anticipated benefits of acquired companies. The achievement or success of the matters covered by such forward-looking statements involves risks, uncertainties and assumptions. If any such risks or uncertainties materialize or if any of the assumptions prove incorrect, Salesforce’s results could differ materially from the results expressed or implied by these forward-looking statements. The risks and uncertainties referred to above include those factors discussed in Salesforce’s reports filed from time to time with the Securities and Exchange Commission, including, but not limited to: the impact of, and actions we may take in response to, the COVID-19 pandemic, related public health measures and resulting economic downturn and market volatility; our ability to maintain security levels and service performance meeting the expectations of our customers, and the resources and costs required to avoid unanticipated downtime and prevent, detect and remediate performance degradation and security breaches; the expenses associated with our data centers and third-party infrastructure providers; our ability to secure additional data center capacity; our reliance on third-party hardware, software and platform providers; the effect of evolving domestic and foreign government regulations, including those related to the provision of services on the Internet, those related to accessing the Internet, and those addressing data privacy, cross-border data transfers and import and export controls; current and potential litigation involving us or our industry, including litigation involving acquired entities such as Tableau Software, Inc. and Slack Technologies, Inc., and the resolution or settlement thereof; regulatory developments and regulatory investigations involving us or affecting our industry; our ability to successfully introduce new services and product features, including any efforts to expand our services; the success of our strategy of acquiring or making investments in complementary businesses, joint ventures, services, technologies and intellectual property rights; our ability to complete, on a timely basis or at all, announced transactions; our ability to realize the benefits from acquisitions, strategic partnerships, joint ventures and investments, including our July 2021 acquisition of Slack Technologies, Inc., and successfully integrate acquired businesses and technologies; our ability to compete in the markets in which we participate; the success of our business strategy and our plan to build our business, including our strategy to be a leading provider of enterprise cloud computing applications and platforms; our ability to execute our business plans; our ability to continue to grow unearned revenue and remaining performance obligation; the pace of change and innovation in enterprise cloud computing services; the seasonal nature of our sales cycles; our ability to limit customer attrition and costs related to those efforts; the success of our international expansion strategy; the demands on our personnel and infrastructure resulting from significant growth in our customer base and operations, including as a result of acquisitions; our ability to preserve our workplace culture, including as a result of our decisions regarding our current and future office environments or work-from-home policies; our dependency on the development and maintenance of the infrastructure of the Internet; our real estate and office facilities strategy and related costs and uncertainties; fluctuations in, and our ability to predict, our operating results and cash flows; the variability in our results arising from the accounting for term license revenue products; the performance and fair value of our investments in complementary businesses through our strategic investment portfolio; the impact of future gains or losses from our strategic investment portfolio, including gains or losses from overall market conditions that may affect the publicly traded companies within our strategic investment portfolio; our ability to protect our intellectual property rights; our ability to develop our brands; the impact of foreign currency exchange rate and interest rate fluctuations on our results; the valuation of our deferred tax assets and the release of related valuation allowances; the potential availability of additional tax assets in the future; the impact of new accounting pronouncements and tax laws; uncertainties affecting our ability to estimate our tax rate; uncertainties regarding our tax obligations in connection with potential jurisdictional transfers of intellectual property, including the tax rate, the timing of the transfer and the value of such transferred intellectual property; uncertainties regarding the effect of general economic and market conditions; the impact of geopolitical events; uncertainties regarding the impact of expensing stock options and other equity awards; the sufficiency of our capital resources; our ability to comply with our debt covenants and lease obligations; and the impact of climate change, natural disasters and actual or threatened public health emergencies, including the ongoing COVID-19 pandemic. Forward-Looking Statements 092821
  • 3. Agenda Architect Relations Team Overview Record Triggered Automations - Key Takeaways Record Triggered Automations - Common Trigger Use Cases Design Considerations Additional Resources 1 2 3 4 5
  • 4. We activate, empower and inspire architects. Trusted advisors, who unlock new opportunities for Salesforce. Experienced practitioners, key to short-term and long-term customer success. Salesforce Architect Relations Our vision
  • 5. Architect Relations Team Zayne Turner Architect Relations, Salesforce Marc Braga Architect Relations, Salesforce Susannah Plaisted Architect Relations, Salesforce Marissa Lowe Architect Relations, Salesforce Tom Leddy Architect Relations, Salesforce
  • 6.
  • 8. Key Takeaways ● Flow and Apex are the preferred no-code and pro-code solutions for triggered automations ● Use Before-Save flow triggers for same-record field updates ● Use After-Save flow triggers for other declarative automations ● Use Apex for high performance batch processing or highly complex logic ● Utilize sub-flows to make your automations reusable and easier to maintain
  • 10. Common Trigger Use-Cases Before-Save Flow Trigger After-Save Flow Trigger After-Save Flow Trigger + Apex Apex Triggers Same-Record Field Updates Available Not Ideal Not Ideal Available High Performance Batch Processing Not Ideal Not Ideal Not Ideal Available Cross-Object CRUD Not Available Available Available Available Asynchronous Processing Not Available Available Available Available Complex List Processing Not Available Not Ideal Available Available Custom Validation Errors Not Available Not Available Not Available Available
  • 11. Same-Record Field Updates Before-Save Flow Trigger After-Save Flow Trigger After-Save Flow Trigger + Apex Apex Triggers Available Not Ideal Not Ideal Available ● Stop implementing Same-Record field updates in Workflow Rules and Process Builder Processes ● Use Before-Save flow triggers or Before-Save Apex Triggers instead
  • 12. High-Performance Batch Processing Before-Save Flow Trigger After-Save Flow Trigger After-Save Flow Trigger + Apex Apex Triggers Not Ideal Not Ideal Not Ideal Available ● Example Scenarios: ○ Defining and evaluating complicated logical expressions or formulas ○ Loading and transforming data from large numbers of records, looping over loops of loops. ○ Anything requiring Map-like or Set-like functionalities. ○ Transaction savepoints
  • 13. Cross-Object CRUD Before-Save Flow Trigger After-Save Flow Trigger After-Save Flow Trigger + Apex Apex Triggers Not Available Available Available Available Creating, updating, or deleting a different record (other than the original record that triggered the transaction) requires a database operation, no matter what tool you use.
  • 14. Complex List Processing Before-Save Flow Trigger After-Save Flow Trigger After-Save Flow Trigger + Apex Apex Triggers Not Available Not Ideal Available Available ● Some common list-processing tasks, such as in-place data transforms, sorts, and filters can be overly cumbersome to achieve in Flow while being much more straightforward (and more performant) in Apex. ● Consider Invokable Apex
  • 15. Asynchronous Processing Before-Save Flow Trigger After-Save Flow Trigger After-Save Flow Trigger + Apex Apex Triggers Not Available Available Available Available ● Both Flow and Apex can execute logic asynchronously when ○ Separate transactions are required ○ External callouts are needed ○ Processing will just simply take too long.
  • 16. Custom Validation Errors Before-Save Flow Trigger After-Save Flow Trigger After-Save Flow Trigger + Apex Apex Triggers Not Available Not Available Not Available Available ● Flow provides no way to either prevent DML operations from committing, or to throw custom errors ● The addError() Apex method is not supported when executed from Flow via Apex invocable method.
  • 17. Design Considerations ● Performance and ordering used to be the main reasons to recommend building one process per object/trigger. ● Consolidating an automation into a single flow has no major impact compared to multiple flows, due to: ○ Entry Conditions ○ Flow Trigger Ordering
  • 18. Create / Update / Delete Records 1 DML for the Entire Batch Get Records 1 SOQL for the entire batch Action Calls Depends on how the action is implemented. Flow Bulkification Don’t Include DML & SOQL in loops! Loops Don’t consume DML or SOQL directly, but execute each contained element serially.
  • 19. Additional Resources ● Architect’s Guide to Record-Triggered Automation on Salesforce ● architect.salesforce.com ● Salesforce Architects Blog ● Salesforce Architects YouTube