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

Weitere ähnliche Inhalte

Ähnlich wie 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
 

Ähnlich wie 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
 

Kürzlich hochgeladen

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Kürzlich hochgeladen (20)

Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 

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!