SlideShare a Scribd company logo
GETTING TO FLOW YOU
A First Look at Flow Builder
Michelle Hansen
Principal, Slalom
-Co-Leader, Cedar Rapids, IA User Group
-Co-Host, Automation Hour
-Trailhead Mentor
-Midwest Dreamin’ Planning Committee
-Three Star Trailhead Ranger
-Presenter: Dreamforce, TrailheaDX/TrailblazerDX, Northeast
Dreamin, Cactusforce, Midwest Dreamin’, Florida Dreamin’,
Automate This! & more
Social Media
Twitter: @mehansen82
Trailhead: https://trailblazer.me/id/michellehansen
LinkedIn:
https://www.linkedin.com/in/michelleelizabethhansen/
GETTING TO FLOW YOU – VITAL STATISTICS
• Works with Lightning and Classic* *some components require Lightning runtime
• Includes many different types: Screen, autolaunched, record/scheduled triggered, etc.
• Can retrieve, display, create, update and delete records
• Can send emails, notifications, and access quick & local actions
• Can access other flows (not all types have this capability)
• Fun Fact: Processes are really Flows under the hood!
GETTING TO FLOW YOU – VOCABULARY
• Flow/Lightning Flow – An automation tool in Salesforce
• Flow Builder – The User Interface in Salesforce used to build a flow
• Flow Interview – A single instance of a flow being run
• Element – An item from the toolbox that is placed on the canvas which does some
sort of action
• Resource – An item from the toolbox that holds data and is used by one or more
elements on the canvas
• Iteration – One “trip” through a loop within a flow
• Outcome – A branched path based on criteria within a Decision Element
• Fault – An error within a flow
GETTING AROUND FLOW BUILDER – FLOW TYPES
GETTING AROUND FLOW BUILDER – BUILDER UI
• Screen – A screen where the user interacts with your flow by viewing,
adding, or editing information.
• Input fields – Text, number, date, checkbox, radio button, picklist, etc
• Display text
• Other components
• Action – Access a quick or standard action in your org
• Send an email
• Log a call
• Custom Actions
• Subflow – Call another flow from within this flow
• Autolaunched from Autolaunched Flow
• Screen or Autolaunched from Screen Flow
GETTING AROUND FLOW BUILDER – TOOLBAR ELEMENTS
This is simply manipulating data within your flow—Consider this a sandbox
within your org – you can’t hurt the org using these
• Assignment – How you set the value of a variable
• Set a record field value to the value of a field from a flow screen
• Set the record count in a collection vs. looping & incrementing a counter
• Decision – Ability to branch your flow down different paths based on
criteria
• Can have multiple outcomes for a decision & multiple decisions in a flow
• Good for doing a null check on records before you proceed
• Decisions are OKAY in loops
• Loop – Used to go through a group of records (a collection variable)
• Loop through all Contact records for an account and update the address
• NEVER put a Data (pink) element inside of a loop!
GETTING AROUND FLOW BUILDER – TOOLBAR ELEMENTS
GETTING AROUND FLOW BUILDER – TOOLBAR ELEMENTS
Data Elements interact with your Salesforce Database – THIS IS REAL
• Create – Creates a new record or group of records in the database
• Update – Updates a record or group of existing records in the database
• Get – Retrieves a record or group of records from the database for use within
your flow
• Delete – Deletes a record or group of records from the database
• Variable – a container to hold information that can change
• Constant – a container to hold information that doesn’t change
• Formula – a way to manipulate information
• Text Template – stores text information that can be manipulated in the
flow
GETTING AROUND FLOW BUILDER – RESOURCES
GETTING AROUND FLOW BUILDER – RESOURCES
• Choice – a defined option for a user to select on a screen
• Record Choice Set – a set of records that a user can pick from on a screen
• Picklist Choice Set – uses an existing picklist field’s values for the user to
pick from on a screen
• Stage –sets stages within your flow, similar to Oppty stage
GETTING TO FLOW YOU – NAMING CONVENTIONS
• Decide on naming conventions for your resources (API names)
• camelCase is the standard for naming variables/resources in code
• lowercase first letter, Capitalize first letter of every new word
• Include a type of resource abbreviation for easy reference
• Examples:
• Variable: var_AccountName
• Formula: fml_totalCostPerMonth
• Choice: c_Yes / c_product_Training
• Collection Variable: cvar_Accts_in_Iowa
• Picklist Choice Set: pcs_Account_TypeField
GETTING AROUND FLOW BUILDER – RESERVED VARIABLES
recordId
• This variable is reserved by Salesforce for a specific purpose
• This passes the Id of the record from which the flow was launched into the flow to give
the flow interview context
• sYNtaX MATTerS – lowercase ‘r’ and uppercase ‘I’ are required
$Record
• This is a global variable that is used to hold each record that a scheduled flow will
interact with
• Scheduled flows will ALWAYS run a separate ‘interview’ of a flow for each record that
meets the entry criteria. This is the only time where bulkification on record updates is
not needed*
TIME TO GET HANDS ON!
*Note: These scenarios are designed to showcase concepts. They are NOT best practices and often
not legitimate real-world scenarios that should be solved exactly as shown
TIME TO GET HANDS ON! FLOW SCENARIO #1
• Our Sales Managers routinely use the same Opportunity name across
different companies, causing confusion when searching for them later.
• We want to use a Before Save flow to automatically append the Account
Number to the Opportunity name entered by the user
TIME TO GET HANDS ON! FLOW SCENARIO #2
• When the address for an Account is updated, every Contact’s
address should be updated to match
• This should happen automatically when the Account record is
saved
TIME TO GET HANDS ON! FLOW SCENARIO #3
• When a new Case is created, we want to notify the Owner so they can begin
working on it ASAP.
• We’ll create a record-triggered flow that allows us to send both an email
alert as well as a custom notification on Salesforce desktop (through the
notification bell).
TIME TO GET HANDS ON! FLOW SCENARIO #4
• User adoption has been problematic. The primary complaint is that it’s too
many steps to create an Account and Contact.
• We’ll create a screen flow that allows us to capture basic Account and
Contact data on a single screen.
RESOURCES
• Trailhead – Get Started with Flows
• https://admin.salesforce.com/blog/2019/getting-started-with-the-new-flow-builder
• AppExchange – Flow Templates & Screen components
• UnofficialSF.com Blogs, Components, Local actions – www.unofficialsf.com
• Automation Hour - www.automationhour.com
• Jen Lee’s blog - www.jenwlee.com
• Rakesh Gupta’s blog - www.automationchampion.com
• David Litton’s blog - www.salesforcesidekick.com
• The Wizard News podcast/blog (Brian Kwong) - https://thewizardnews.com/
• Metillium Consulting blog (Luke Freeland) - https://metillium.com/blog/
• https://captechconsulting.com/blogs/9-tips-for-using-salesforces-lightning-flow-the-right-
way
• Terry’s Tidbits Let’s Get Flowing Series:
https://www.youtube.com/playlist?list=PLPXY38WvYAn6LX6Bl91ey_eLwY-_OYhPO
Feel Free to Contact Me!
MichelleDoesSalesforce@gmail.com
Twitter: @mehansen82
Trailhead: https://trailblazer.me/id/michellehansen
LinkedIn:
https://www.linkedin.com/in/michelleelizabethhansen/
I promise—I really mean it!

More Related Content

Similar to Getting to Flow You-Arkansas UG Nov 2022.pptx

SQL Explore 2012: P&T Part 1
SQL Explore 2012: P&T Part 1SQL Explore 2012: P&T Part 1
SQL Explore 2012: P&T Part 1
sqlserver.co.il
 
BUILDING A DATA WAREHOUSE
BUILDING A DATA WAREHOUSEBUILDING A DATA WAREHOUSE
BUILDING A DATA WAREHOUSE
Neha Kapoor
 

Similar to Getting to Flow You-Arkansas UG Nov 2022.pptx (20)

LDV.pptx
LDV.pptxLDV.pptx
LDV.pptx
 
LDV-v2.pptx
LDV-v2.pptxLDV-v2.pptx
LDV-v2.pptx
 
Server and application monitoring webinars [Applications Manager] - Part 4
Server and application monitoring webinars [Applications Manager] - Part 4Server and application monitoring webinars [Applications Manager] - Part 4
Server and application monitoring webinars [Applications Manager] - Part 4
 
Building high performance and scalable share point applications
Building high performance and scalable share point applicationsBuilding high performance and scalable share point applications
Building high performance and scalable share point applications
 
Data Onboarding Breakout Session
Data Onboarding Breakout SessionData Onboarding Breakout Session
Data Onboarding Breakout Session
 
SQL Explore 2012: P&T Part 1
SQL Explore 2012: P&T Part 1SQL Explore 2012: P&T Part 1
SQL Explore 2012: P&T Part 1
 
Flink Forward San Francisco 2018: Dave Torok & Sameer Wadkar - "Embedding Fl...
Flink Forward San Francisco 2018:  Dave Torok & Sameer Wadkar - "Embedding Fl...Flink Forward San Francisco 2018:  Dave Torok & Sameer Wadkar - "Embedding Fl...
Flink Forward San Francisco 2018: Dave Torok & Sameer Wadkar - "Embedding Fl...
 
Api Design
Api DesignApi Design
Api Design
 
Getting_Started_with_Salesforce_Flow_for_Developers_(In-person_event)_.pptx
Getting_Started_with_Salesforce_Flow_for_Developers_(In-person_event)_.pptxGetting_Started_with_Salesforce_Flow_for_Developers_(In-person_event)_.pptx
Getting_Started_with_Salesforce_Flow_for_Developers_(In-person_event)_.pptx
 
Beginning Of DBMS (data base)
Beginning Of DBMS (data base)Beginning Of DBMS (data base)
Beginning Of DBMS (data base)
 
Redundant devops
Redundant devopsRedundant devops
Redundant devops
 
SFDC Other Platform Features
SFDC Other Platform FeaturesSFDC Other Platform Features
SFDC Other Platform Features
 
INTRODUCTION TO RDBMS
INTRODUCTION TO RDBMSINTRODUCTION TO RDBMS
INTRODUCTION TO RDBMS
 
Software development planning and essentials
Software development planning and essentialsSoftware development planning and essentials
Software development planning and essentials
 
Software development planning and essentials
Software development planning and essentialsSoftware development planning and essentials
Software development planning and essentials
 
Salesforce admin training 1
Salesforce admin training 1Salesforce admin training 1
Salesforce admin training 1
 
BUILDING A DATA WAREHOUSE
BUILDING A DATA WAREHOUSEBUILDING A DATA WAREHOUSE
BUILDING A DATA WAREHOUSE
 
Aws atlanta march_2015
Aws atlanta march_2015Aws atlanta march_2015
Aws atlanta march_2015
 
New Approaches to Faster Oracle Forms System Performance
New Approaches to Faster Oracle Forms System PerformanceNew Approaches to Faster Oracle Forms System Performance
New Approaches to Faster Oracle Forms System Performance
 
Design API using RAML - basics
Design API using RAML - basicsDesign API using RAML - basics
Design API using RAML - basics
 

Recently uploaded

Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
Industrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportIndustrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training Report
Avinash Rai
 

Recently uploaded (20)

Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptxJose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptxSolid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
 
B.ed spl. HI pdusu exam paper-2023-24.pdf
B.ed spl. HI pdusu exam paper-2023-24.pdfB.ed spl. HI pdusu exam paper-2023-24.pdf
B.ed spl. HI pdusu exam paper-2023-24.pdf
 
Basic Civil Engineering Notes of Chapter-6, Topic- Ecosystem, Biodiversity G...
Basic Civil Engineering Notes of Chapter-6,  Topic- Ecosystem, Biodiversity G...Basic Civil Engineering Notes of Chapter-6,  Topic- Ecosystem, Biodiversity G...
Basic Civil Engineering Notes of Chapter-6, Topic- Ecosystem, Biodiversity G...
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
 
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
Industrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportIndustrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training Report
 
Benefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational ResourcesBenefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational Resources
 
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptBasic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
 
NCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdfNCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdf
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 

Getting to Flow You-Arkansas UG Nov 2022.pptx

  • 1. GETTING TO FLOW YOU A First Look at Flow Builder
  • 2. Michelle Hansen Principal, Slalom -Co-Leader, Cedar Rapids, IA User Group -Co-Host, Automation Hour -Trailhead Mentor -Midwest Dreamin’ Planning Committee -Three Star Trailhead Ranger -Presenter: Dreamforce, TrailheaDX/TrailblazerDX, Northeast Dreamin, Cactusforce, Midwest Dreamin’, Florida Dreamin’, Automate This! & more Social Media Twitter: @mehansen82 Trailhead: https://trailblazer.me/id/michellehansen LinkedIn: https://www.linkedin.com/in/michelleelizabethhansen/
  • 3. GETTING TO FLOW YOU – VITAL STATISTICS • Works with Lightning and Classic* *some components require Lightning runtime • Includes many different types: Screen, autolaunched, record/scheduled triggered, etc. • Can retrieve, display, create, update and delete records • Can send emails, notifications, and access quick & local actions • Can access other flows (not all types have this capability) • Fun Fact: Processes are really Flows under the hood!
  • 4. GETTING TO FLOW YOU – VOCABULARY • Flow/Lightning Flow – An automation tool in Salesforce • Flow Builder – The User Interface in Salesforce used to build a flow • Flow Interview – A single instance of a flow being run • Element – An item from the toolbox that is placed on the canvas which does some sort of action • Resource – An item from the toolbox that holds data and is used by one or more elements on the canvas • Iteration – One “trip” through a loop within a flow • Outcome – A branched path based on criteria within a Decision Element • Fault – An error within a flow
  • 5. GETTING AROUND FLOW BUILDER – FLOW TYPES
  • 6. GETTING AROUND FLOW BUILDER – BUILDER UI
  • 7. • Screen – A screen where the user interacts with your flow by viewing, adding, or editing information. • Input fields – Text, number, date, checkbox, radio button, picklist, etc • Display text • Other components • Action – Access a quick or standard action in your org • Send an email • Log a call • Custom Actions • Subflow – Call another flow from within this flow • Autolaunched from Autolaunched Flow • Screen or Autolaunched from Screen Flow GETTING AROUND FLOW BUILDER – TOOLBAR ELEMENTS
  • 8. This is simply manipulating data within your flow—Consider this a sandbox within your org – you can’t hurt the org using these • Assignment – How you set the value of a variable • Set a record field value to the value of a field from a flow screen • Set the record count in a collection vs. looping & incrementing a counter • Decision – Ability to branch your flow down different paths based on criteria • Can have multiple outcomes for a decision & multiple decisions in a flow • Good for doing a null check on records before you proceed • Decisions are OKAY in loops • Loop – Used to go through a group of records (a collection variable) • Loop through all Contact records for an account and update the address • NEVER put a Data (pink) element inside of a loop! GETTING AROUND FLOW BUILDER – TOOLBAR ELEMENTS
  • 9. GETTING AROUND FLOW BUILDER – TOOLBAR ELEMENTS Data Elements interact with your Salesforce Database – THIS IS REAL • Create – Creates a new record or group of records in the database • Update – Updates a record or group of existing records in the database • Get – Retrieves a record or group of records from the database for use within your flow • Delete – Deletes a record or group of records from the database
  • 10. • Variable – a container to hold information that can change • Constant – a container to hold information that doesn’t change • Formula – a way to manipulate information • Text Template – stores text information that can be manipulated in the flow GETTING AROUND FLOW BUILDER – RESOURCES
  • 11. GETTING AROUND FLOW BUILDER – RESOURCES • Choice – a defined option for a user to select on a screen • Record Choice Set – a set of records that a user can pick from on a screen • Picklist Choice Set – uses an existing picklist field’s values for the user to pick from on a screen • Stage –sets stages within your flow, similar to Oppty stage
  • 12. GETTING TO FLOW YOU – NAMING CONVENTIONS • Decide on naming conventions for your resources (API names) • camelCase is the standard for naming variables/resources in code • lowercase first letter, Capitalize first letter of every new word • Include a type of resource abbreviation for easy reference • Examples: • Variable: var_AccountName • Formula: fml_totalCostPerMonth • Choice: c_Yes / c_product_Training • Collection Variable: cvar_Accts_in_Iowa • Picklist Choice Set: pcs_Account_TypeField
  • 13. GETTING AROUND FLOW BUILDER – RESERVED VARIABLES recordId • This variable is reserved by Salesforce for a specific purpose • This passes the Id of the record from which the flow was launched into the flow to give the flow interview context • sYNtaX MATTerS – lowercase ‘r’ and uppercase ‘I’ are required $Record • This is a global variable that is used to hold each record that a scheduled flow will interact with • Scheduled flows will ALWAYS run a separate ‘interview’ of a flow for each record that meets the entry criteria. This is the only time where bulkification on record updates is not needed*
  • 14. TIME TO GET HANDS ON! *Note: These scenarios are designed to showcase concepts. They are NOT best practices and often not legitimate real-world scenarios that should be solved exactly as shown
  • 15. TIME TO GET HANDS ON! FLOW SCENARIO #1 • Our Sales Managers routinely use the same Opportunity name across different companies, causing confusion when searching for them later. • We want to use a Before Save flow to automatically append the Account Number to the Opportunity name entered by the user
  • 16. TIME TO GET HANDS ON! FLOW SCENARIO #2 • When the address for an Account is updated, every Contact’s address should be updated to match • This should happen automatically when the Account record is saved
  • 17. TIME TO GET HANDS ON! FLOW SCENARIO #3 • When a new Case is created, we want to notify the Owner so they can begin working on it ASAP. • We’ll create a record-triggered flow that allows us to send both an email alert as well as a custom notification on Salesforce desktop (through the notification bell).
  • 18. TIME TO GET HANDS ON! FLOW SCENARIO #4 • User adoption has been problematic. The primary complaint is that it’s too many steps to create an Account and Contact. • We’ll create a screen flow that allows us to capture basic Account and Contact data on a single screen.
  • 19. RESOURCES • Trailhead – Get Started with Flows • https://admin.salesforce.com/blog/2019/getting-started-with-the-new-flow-builder • AppExchange – Flow Templates & Screen components • UnofficialSF.com Blogs, Components, Local actions – www.unofficialsf.com • Automation Hour - www.automationhour.com • Jen Lee’s blog - www.jenwlee.com • Rakesh Gupta’s blog - www.automationchampion.com • David Litton’s blog - www.salesforcesidekick.com • The Wizard News podcast/blog (Brian Kwong) - https://thewizardnews.com/ • Metillium Consulting blog (Luke Freeland) - https://metillium.com/blog/ • https://captechconsulting.com/blogs/9-tips-for-using-salesforces-lightning-flow-the-right- way • Terry’s Tidbits Let’s Get Flowing Series: https://www.youtube.com/playlist?list=PLPXY38WvYAn6LX6Bl91ey_eLwY-_OYhPO
  • 20. Feel Free to Contact Me! MichelleDoesSalesforce@gmail.com Twitter: @mehansen82 Trailhead: https://trailblazer.me/id/michellehansen LinkedIn: https://www.linkedin.com/in/michelleelizabethhansen/ I promise—I really mean it!