SlideShare a Scribd company logo
Demystifying Flow Bulkification
@Nads_P07
Narender Singh
February 28, 2020
Narender Singh
Salesforce Dev - Admin
Lightning Champion
Former Analytics Champion
3x Trailhead Ranger
Blogger @ forcePanda.wordpress.com
@Nads_P07
/narendersingh07
Your Turn
Agenda
A Conversation with Salesforce Docs
Me: I am giving a session on Flow Bulkification
SF Docs be like
Me:
Breaking the Myth
Common Terminology
Transaction
• Represents a set of operations that are executed as a single unit.
Flow Transaction
• A transaction represents a set of operations that are executed as a single unit in context of a
flow.
Flow Interview
• A flow interview is a running instance of a flow.
Bulkifiable Element
• Flows can bulkify any element that performs a DML statement or SOQL query or does
something else external to the flow, like sending an email.
• Elements that can be bulkified by flows, for example, Create/Get/Update/Delete Records
element and Actions(ex- Quick Action, Post to Chatter, Email Alerts, Apex Actions etc.) element.
Bulkifiable Elements
Bulkifiable
Elements
Use case
When a case is created, check if the parent Account of the case
has more than 5 open cases, if yes, send an email to notify the
account owner.
Flow Solution
Case 1: When a single case is created
11 2 3Case is
created
Flow is
invoked
Flow interview
is created
Flow Interview
(Parent Account for this case has more than 5 open cases.)
(Parent Accounts for both the cases have more than 5 open cases.)
Case 2: When 2 Cases are created.
1 32
Combined
SOQL
Combined
Action
Case 1
Case 2
Flow is
invoked
Flow interview
for C1
Flow interview
for C2
Conclusion: Are Flows bulkified?
Conclusion: Are Flows bulkified?
Individual flow interviews(running instances of same flow) are
not bulkified.
Interview operations are bulkified only when they execute the
same element.
What can I do to bulkify my Flows?
• Avoid the using elements like Get Records, Update Records, Create Records
etc. inside Loop structures.
• Use collection variables to do mass operations.
• Consider using Invocable Apex actions for handling complex business logics.
Resources
• https://help.salesforce.com/articleView?id=flow_concepts_bulkification.htm&type=5
Demistifying flow bulkification
Demistifying flow bulkification

More Related Content

PDF
Before upgrading to Business Objects bi4.2 (or any other Business Objects ver...
PPTX
Datasets, APIs, and Web Scraping
PPTX
Cashing in on logging and exception data
PPTX
Large Data Volume Salesforce experiences
PDF
O365Con18 - Flowverload, Introducion to Flow - Ahmad Najjar
PPTX
Process Builder Automation and Considerations
PPTX
Navigating the Mess of a Shared drive Migration to SharePoint
PPTX
Navigating the mess of a Shared Network Drive Migration to SharePoint - SPS B...
Before upgrading to Business Objects bi4.2 (or any other Business Objects ver...
Datasets, APIs, and Web Scraping
Cashing in on logging and exception data
Large Data Volume Salesforce experiences
O365Con18 - Flowverload, Introducion to Flow - Ahmad Najjar
Process Builder Automation and Considerations
Navigating the Mess of a Shared drive Migration to SharePoint
Navigating the mess of a Shared Network Drive Migration to SharePoint - SPS B...

Similar to Demistifying flow bulkification (20)

PPTX
Talkin bout Flow - Meighan Brodkey WIT Devs
PPTX
Process Builder is an #AwesomeAdmin's Swiss Army Knife by Jennifer Lee
PPTX
Processing large volume of data with MuleSoft and salesforce.pptx
PPTX
Processing large volume of data with MuleSoft and salesforce.pptx
PPTX
LDV-v2.pptx
PPTX
LDV.pptx
PDF
How to write your database: the story about Event Store
PPTX
Account Skew, Ownership Skew and Lookup Skew in Salesforce
PDF
Help! my sql server log file is too big!!! tech republic
PDF
USG Web Tech Day 2018 - Microsoft Teams, Collaboration, & You
PDF
An In-Depth Look at Pinpointing and Addressing Sources of Performance Problem...
PPTX
SharePoint Intelligence Extending Share Point Designer 2010 Workflows With Cu...
PPTX
Microsoft flow how, when & why
PPTX
Getting Ready for Ligtning Process Builder
PPTX
Trailblazer Community - Flows Workshop (Session 2)
PPT
Variables Arguments and control flow_UiPath.ppt
PDF
Data Warehousing concepts for Data Engineering
PDF
Data-Driven Rules in HFM
PDF
Better Data with Machine Learning and Serverless
PDF
SOCIALIZE YOUR SAP ERP THROUGH INTEGRATE D DIGITAL EXPERIENCE PLATFORMS
Talkin bout Flow - Meighan Brodkey WIT Devs
Process Builder is an #AwesomeAdmin's Swiss Army Knife by Jennifer Lee
Processing large volume of data with MuleSoft and salesforce.pptx
Processing large volume of data with MuleSoft and salesforce.pptx
LDV-v2.pptx
LDV.pptx
How to write your database: the story about Event Store
Account Skew, Ownership Skew and Lookup Skew in Salesforce
Help! my sql server log file is too big!!! tech republic
USG Web Tech Day 2018 - Microsoft Teams, Collaboration, & You
An In-Depth Look at Pinpointing and Addressing Sources of Performance Problem...
SharePoint Intelligence Extending Share Point Designer 2010 Workflows With Cu...
Microsoft flow how, when & why
Getting Ready for Ligtning Process Builder
Trailblazer Community - Flows Workshop (Session 2)
Variables Arguments and control flow_UiPath.ppt
Data Warehousing concepts for Data Engineering
Data-Driven Rules in HFM
Better Data with Machine Learning and Serverless
SOCIALIZE YOUR SAP ERP THROUGH INTEGRATE D DIGITAL EXPERIENCE PLATFORMS
Ad

Recently uploaded (20)

PPTX
Introduction to Artificial Intelligence
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PPTX
Transform Your Business with a Software ERP System
PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PPTX
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
PDF
iTop VPN Free 5.6.0.5262 Crack latest version 2025
PDF
Digital Systems & Binary Numbers (comprehensive )
PPTX
Operating system designcfffgfgggggggvggggggggg
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
medical staffing services at VALiNTRY
PDF
top salesforce developer skills in 2025.pdf
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PPTX
Computer Software and OS of computer science of grade 11.pptx
PDF
Understanding Forklifts - TECH EHS Solution
PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PPTX
assetexplorer- product-overview - presentation
PDF
Digital Strategies for Manufacturing Companies
Introduction to Artificial Intelligence
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
Upgrade and Innovation Strategies for SAP ERP Customers
Transform Your Business with a Software ERP System
Odoo POS Development Services by CandidRoot Solutions
How to Choose the Right IT Partner for Your Business in Malaysia
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
iTop VPN Free 5.6.0.5262 Crack latest version 2025
Digital Systems & Binary Numbers (comprehensive )
Operating system designcfffgfgggggggvggggggggg
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
medical staffing services at VALiNTRY
top salesforce developer skills in 2025.pdf
Design an Analysis of Algorithms II-SECS-1021-03
Computer Software and OS of computer science of grade 11.pptx
Understanding Forklifts - TECH EHS Solution
PTS Company Brochure 2025 (1).pdf.......
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
assetexplorer- product-overview - presentation
Digital Strategies for Manufacturing Companies
Ad

Demistifying flow bulkification

  • 2. Narender Singh Salesforce Dev - Admin Lightning Champion Former Analytics Champion 3x Trailhead Ranger Blogger @ forcePanda.wordpress.com @Nads_P07 /narendersingh07
  • 5. A Conversation with Salesforce Docs Me: I am giving a session on Flow Bulkification SF Docs be like Me:
  • 7. Common Terminology Transaction • Represents a set of operations that are executed as a single unit. Flow Transaction • A transaction represents a set of operations that are executed as a single unit in context of a flow. Flow Interview • A flow interview is a running instance of a flow. Bulkifiable Element • Flows can bulkify any element that performs a DML statement or SOQL query or does something else external to the flow, like sending an email. • Elements that can be bulkified by flows, for example, Create/Get/Update/Delete Records element and Actions(ex- Quick Action, Post to Chatter, Email Alerts, Apex Actions etc.) element.
  • 9. Use case When a case is created, check if the parent Account of the case has more than 5 open cases, if yes, send an email to notify the account owner.
  • 11. Case 1: When a single case is created 11 2 3Case is created Flow is invoked Flow interview is created Flow Interview (Parent Account for this case has more than 5 open cases.)
  • 12. (Parent Accounts for both the cases have more than 5 open cases.) Case 2: When 2 Cases are created. 1 32 Combined SOQL Combined Action Case 1 Case 2 Flow is invoked Flow interview for C1 Flow interview for C2
  • 13. Conclusion: Are Flows bulkified?
  • 14. Conclusion: Are Flows bulkified? Individual flow interviews(running instances of same flow) are not bulkified. Interview operations are bulkified only when they execute the same element.
  • 15. What can I do to bulkify my Flows? • Avoid the using elements like Get Records, Update Records, Create Records etc. inside Loop structures. • Use collection variables to do mass operations. • Consider using Invocable Apex actions for handling complex business logics.