SlideShare a Scribd company logo
Loop and Assignment
Flows for Beginners
BY DIRK KEATON
I love to talk about
flows. Email me or
reach out on LinkedIn
(Scan here)
Questions
Have you made a loop from scratch?
When was the last time you made a loop?
Our Goals
Create flows
Look up record Id’s and assign them to variables
When do you use a loop?
When you want to update multiple child objects using details from a parent.
◦ When the address is added to a household account, the address field will be updated on all related
contacts who don’t have an address
When you want a change to a parent object to trigger changes in multiple child objects
◦ When an account changes its record type to client, all related contacts have their record type changed to
customer.
When you want an action to “fire” based on a change to a parent
◦ An email is sent to all contacts connected to an opportunity when the opportunity status is updated.
The scenario
Our organization created the position of auditor to look over all cases that are potential
liabilities to see if we can improve our processes. All cases meeting these criteria need to get
assigned to the auditor. Supervisors should be able to distinguish cases under audit. The
auditor should be able to access them in an editable list view.
What will our loop do?
It will assign cases to a user based on their title
It will update the cases with a checkbox so supervisors can tell them apart.
It will assign cases to a record type
What we will have at the end
All cases that are potential liabilities will be assigned to the new user and a new record type. This user will be able to create
and edit them in a convenient list view.
Create a user
Make sure to make them
a service cloud user.
Make sure to use
this title
Create a checkbox
Give yourself access to edit. If you do not, the flow will not work.
Build a record triggered flow
Begin by choosing an object
This window will immediately appear.
For the object, choose user.
Set the flow to “trigger”
when a record is created or
updated
We choose this because people’s
job titles in the real world change.
Select the following entry conditions
Create a get records element
Name it “liability test”
Get a “case”
Filter so that PotentialLiability equals Yes
Select the following options
As you get more comfortable with loop flows, feel free to experiment with Choose Fields and
Assign Variables—it’s a great option when you only need 1 or 2 fields from an object, and it
helps make the flow run a little faster.
Select “all records”—this will make it a
record collection
We use this collection variable in a loop
If you don’t see it, go back and make sure you
chose to store all records
Create an assignment object
Select “current item from loop across cases”
then under audit
Select “true” as the value. It will check the
“under audit” box.
Assign the cases to your auditor
Create a new line. Then select current item
from loop across cases ownerid
Then, select {$record.Id}
Flow “sees” records using their ID. You can’t
assign a record (i.e. user, contact) to a lookup
field without using the ID.
Create the collection variable
Each edited record needs to be added to a
new collection. Next, create a new collection
variable of the same type as the record (e.g.
cases) to store it.
While this isn’t strictly necessary, I do like this
practice for learning. It also helps because
there are times where you need to re-use the
first variable.
Adding to the collection
On the same assignment action, add another
line.
Select the “add” operator. Then, select “loop
across cases”
You may get an error or the system may try to
add a field name after {!Loop_across_cases}
Ignore it and do not include a period. Click
“outside” the box to ignore it.
Use an update record action to update
the records in collect cases
Create a new Auditor
You will need to deactivate
your old auditor if you are
doing this in a hands-on
org due to limits on
salesforce licenses
If the flow is working correctly, your
closed cases will look like this
Create A New Record Type & Support
Process
We now want to assign the accounts that were
under audit to an account record type. This
will let us see a list view of them and do inline
edits from that list view.
To do that create a case under audit support
process and record type.
Get the ID for this record type
Create a new get records element (I called it
recordtype under audit
Get the ID for this record type
Then, get a “record type” object. Make the
name equal case under audit
You can get the recordtype of any object
(custom or otherwise) this way.
Create a second loop right after the first
Add “collect cases” (your updated variable) to
this loop
What do we do next?
Assign that ID to the current item in the loop
What do we do next
Create a collection variable
Start a new line and add things to it!
Add records
Replace the variable in your old update record
element with WithID
Debug and see what happens! All the changes
get passed!
The final flow
looks like this
Now activate it.
If you want to re-run the flow, make a new
auditor or give your employee a new title,
then switch it back to auditor.
Make a list view
What the List View Looks Like

More Related Content

What's hot

6 Ways to Quit Bullet Points with Style
6 Ways to Quit Bullet Points with Style6 Ways to Quit Bullet Points with Style
6 Ways to Quit Bullet Points with StylePodium Wisdom
 
25 Need-to-Know Marketing Stats
25 Need-to-Know Marketing Stats25 Need-to-Know Marketing Stats
25 Need-to-Know Marketing Statscontently
 
Five Killer Ways to Design The Same Slide
Five Killer Ways to Design The Same SlideFive Killer Ways to Design The Same Slide
Five Killer Ways to Design The Same SlideCrispy Presentations
 
20 Ideas for your Website Homepage Content
20 Ideas for your Website Homepage Content20 Ideas for your Website Homepage Content
20 Ideas for your Website Homepage ContentBarry Feldman
 
How to Attract Top Talent: Transforming Your Startup Into a Talent Magnet
How to Attract Top Talent: Transforming Your Startup Into a Talent MagnetHow to Attract Top Talent: Transforming Your Startup Into a Talent Magnet
How to Attract Top Talent: Transforming Your Startup Into a Talent MagnetDavid Ehrenberg
 
ChatGPT_Prompts.pptx
ChatGPT_Prompts.pptxChatGPT_Prompts.pptx
ChatGPT_Prompts.pptxChakrit Phain
 
28 Pitching Essentials
28 Pitching Essentials28 Pitching Essentials
28 Pitching EssentialsMichael Parker
 
Hegazi_ChatGPT_Book.pdf
Hegazi_ChatGPT_Book.pdfHegazi_ChatGPT_Book.pdf
Hegazi_ChatGPT_Book.pdfAmirHegazi1
 
Here’s The Deck Andy Raskin Called “The Greatest Sales Pitch I’ve Seen All Year”
Here’s The Deck Andy Raskin Called “The Greatest Sales Pitch I’ve Seen All Year”Here’s The Deck Andy Raskin Called “The Greatest Sales Pitch I’ve Seen All Year”
Here’s The Deck Andy Raskin Called “The Greatest Sales Pitch I’ve Seen All Year”Drift
 
SlideShare Experts - 7 Experts Reveal Their Presentation Design Secrets
SlideShare Experts - 7 Experts Reveal Their Presentation Design SecretsSlideShare Experts - 7 Experts Reveal Their Presentation Design Secrets
SlideShare Experts - 7 Experts Reveal Their Presentation Design SecretsEugene Cheng
 
Prompting is an art / Sztuka promptowania
Prompting is an art / Sztuka promptowaniaPrompting is an art / Sztuka promptowania
Prompting is an art / Sztuka promptowaniaMichal Jaskolski
 
20 Inspirational Sales Quotes from Don Draper
20 Inspirational Sales Quotes from Don Draper20 Inspirational Sales Quotes from Don Draper
20 Inspirational Sales Quotes from Don DraperInsightSquared
 
My interview with ChatGPT
My interview with ChatGPTMy interview with ChatGPT
My interview with ChatGPTIsac Costa
 
Making Sense of Analytics
Making Sense of AnalyticsMaking Sense of Analytics
Making Sense of AnalyticsDana DiTomaso
 
Blueprint ChatGPT Lunch & Learn
Blueprint ChatGPT Lunch & LearnBlueprint ChatGPT Lunch & Learn
Blueprint ChatGPT Lunch & Learngnakan
 
How to Teach and Learn with ChatGPT - BETT 2023
How to Teach and Learn with ChatGPT - BETT 2023How to Teach and Learn with ChatGPT - BETT 2023
How to Teach and Learn with ChatGPT - BETT 2023Dominik Lukes
 
How ChatGPT and AI-assisted coding changes software engineering profoundly
How ChatGPT and AI-assisted coding changes software engineering profoundlyHow ChatGPT and AI-assisted coding changes software engineering profoundly
How ChatGPT and AI-assisted coding changes software engineering profoundlyPekka Abrahamsson / Tampere University
 

What's hot (20)

ChatGPT Guide For Strategists
ChatGPT Guide For StrategistsChatGPT Guide For Strategists
ChatGPT Guide For Strategists
 
6 Ways to Quit Bullet Points with Style
6 Ways to Quit Bullet Points with Style6 Ways to Quit Bullet Points with Style
6 Ways to Quit Bullet Points with Style
 
25 Need-to-Know Marketing Stats
25 Need-to-Know Marketing Stats25 Need-to-Know Marketing Stats
25 Need-to-Know Marketing Stats
 
Five Killer Ways to Design The Same Slide
Five Killer Ways to Design The Same SlideFive Killer Ways to Design The Same Slide
Five Killer Ways to Design The Same Slide
 
20 Ideas for your Website Homepage Content
20 Ideas for your Website Homepage Content20 Ideas for your Website Homepage Content
20 Ideas for your Website Homepage Content
 
How to Attract Top Talent: Transforming Your Startup Into a Talent Magnet
How to Attract Top Talent: Transforming Your Startup Into a Talent MagnetHow to Attract Top Talent: Transforming Your Startup Into a Talent Magnet
How to Attract Top Talent: Transforming Your Startup Into a Talent Magnet
 
ChatGPT_Prompts.pptx
ChatGPT_Prompts.pptxChatGPT_Prompts.pptx
ChatGPT_Prompts.pptx
 
28 Pitching Essentials
28 Pitching Essentials28 Pitching Essentials
28 Pitching Essentials
 
Hegazi_ChatGPT_Book.pdf
Hegazi_ChatGPT_Book.pdfHegazi_ChatGPT_Book.pdf
Hegazi_ChatGPT_Book.pdf
 
Here’s The Deck Andy Raskin Called “The Greatest Sales Pitch I’ve Seen All Year”
Here’s The Deck Andy Raskin Called “The Greatest Sales Pitch I’ve Seen All Year”Here’s The Deck Andy Raskin Called “The Greatest Sales Pitch I’ve Seen All Year”
Here’s The Deck Andy Raskin Called “The Greatest Sales Pitch I’ve Seen All Year”
 
SlideShare Experts - 7 Experts Reveal Their Presentation Design Secrets
SlideShare Experts - 7 Experts Reveal Their Presentation Design SecretsSlideShare Experts - 7 Experts Reveal Their Presentation Design Secrets
SlideShare Experts - 7 Experts Reveal Their Presentation Design Secrets
 
Prompting is an art / Sztuka promptowania
Prompting is an art / Sztuka promptowaniaPrompting is an art / Sztuka promptowania
Prompting is an art / Sztuka promptowania
 
Chat Gpt
Chat GptChat Gpt
Chat Gpt
 
20 Inspirational Sales Quotes from Don Draper
20 Inspirational Sales Quotes from Don Draper20 Inspirational Sales Quotes from Don Draper
20 Inspirational Sales Quotes from Don Draper
 
My interview with ChatGPT
My interview with ChatGPTMy interview with ChatGPT
My interview with ChatGPT
 
CHATGPT.pptx
CHATGPT.pptxCHATGPT.pptx
CHATGPT.pptx
 
Making Sense of Analytics
Making Sense of AnalyticsMaking Sense of Analytics
Making Sense of Analytics
 
Blueprint ChatGPT Lunch & Learn
Blueprint ChatGPT Lunch & LearnBlueprint ChatGPT Lunch & Learn
Blueprint ChatGPT Lunch & Learn
 
How to Teach and Learn with ChatGPT - BETT 2023
How to Teach and Learn with ChatGPT - BETT 2023How to Teach and Learn with ChatGPT - BETT 2023
How to Teach and Learn with ChatGPT - BETT 2023
 
How ChatGPT and AI-assisted coding changes software engineering profoundly
How ChatGPT and AI-assisted coding changes software engineering profoundlyHow ChatGPT and AI-assisted coding changes software engineering profoundly
How ChatGPT and AI-assisted coding changes software engineering profoundly
 

Similar to Salesforce Loop and Assignment Flows for Beginners.pptx

Weird sObjects.pptx
Weird sObjects.pptxWeird sObjects.pptx
Weird sObjects.pptxDirkKeaton1
 
ISC APPS FORMS BY SWAROOP
ISC APPS FORMS BY SWAROOP ISC APPS FORMS BY SWAROOP
ISC APPS FORMS BY SWAROOP Anil Kumar
 
Programming Building Blocks for Admins
Programming Building Blocks for Admins Programming Building Blocks for Admins
Programming Building Blocks for Admins Salesforce Admins
 
Sales force certification-lab
Sales force certification-labSales force certification-lab
Sales force certification-labAmit Sharma
 
Normalization
NormalizationNormalization
NormalizationAbuSahama
 
Obiee interview questions and answers faq
Obiee interview questions and answers faqObiee interview questions and answers faq
Obiee interview questions and answers faqmaheshboggula
 
13088674 oracle-adf-11g-learning-application-my-procurement-application
13088674 oracle-adf-11g-learning-application-my-procurement-application13088674 oracle-adf-11g-learning-application-my-procurement-application
13088674 oracle-adf-11g-learning-application-my-procurement-applicationmuzaffar1986
 
Use case 1 User LoginActor Admin, Faculty, or StudentBa.docx
Use case 1 User LoginActor Admin, Faculty, or StudentBa.docxUse case 1 User LoginActor Admin, Faculty, or StudentBa.docx
Use case 1 User LoginActor Admin, Faculty, or StudentBa.docxjessiehampson
 
PEGA Naming standards for pega rules | PEGA PRPC Training
PEGA Naming standards for pega rules | PEGA PRPC TrainingPEGA Naming standards for pega rules | PEGA PRPC Training
PEGA Naming standards for pega rules | PEGA PRPC TrainingAshock Kumar
 
2.business object repository
2.business object repository2.business object repository
2.business object repositoryAjay Kumar ☁
 
need help completing week 6 ilab.. i will upload what I currently ha.docx
need help completing week 6 ilab.. i will upload what I currently ha.docxneed help completing week 6 ilab.. i will upload what I currently ha.docx
need help completing week 6 ilab.. i will upload what I currently ha.docxniraj57
 
Il 09 T3 William Spreitzer
Il 09 T3 William SpreitzerIl 09 T3 William Spreitzer
Il 09 T3 William Spreitzerwspreitzer
 
Rinkeshkumar Bhagat Portfolio
Rinkeshkumar Bhagat PortfolioRinkeshkumar Bhagat Portfolio
Rinkeshkumar Bhagat PortfolioRinkeshkumar15
 
Rinkeshkumar Bhagat Portfolio
Rinkeshkumar Bhagat PortfolioRinkeshkumar Bhagat Portfolio
Rinkeshkumar Bhagat PortfolioRinkeshkumar15
 
Reports in Horizon
Reports in HorizonReports in Horizon
Reports in HorizonJohnny Pe
 
Object Oriented Analysis and Design with UML2 part2
Object Oriented Analysis and Design with UML2 part2Object Oriented Analysis and Design with UML2 part2
Object Oriented Analysis and Design with UML2 part2Haitham Raik
 
Sales force certification-lab
Sales force certification-labSales force certification-lab
Sales force certification-labAmit Sharma
 

Similar to Salesforce Loop and Assignment Flows for Beginners.pptx (20)

Weird sObjects.pptx
Weird sObjects.pptxWeird sObjects.pptx
Weird sObjects.pptx
 
ISC APPS FORMS BY SWAROOP
ISC APPS FORMS BY SWAROOP ISC APPS FORMS BY SWAROOP
ISC APPS FORMS BY SWAROOP
 
Programming Building Blocks for Admins
Programming Building Blocks for Admins Programming Building Blocks for Admins
Programming Building Blocks for Admins
 
Mil.list
Mil.listMil.list
Mil.list
 
Sales force certification-lab
Sales force certification-labSales force certification-lab
Sales force certification-lab
 
Normalization
NormalizationNormalization
Normalization
 
Obiee interview questions and answers faq
Obiee interview questions and answers faqObiee interview questions and answers faq
Obiee interview questions and answers faq
 
Salary advanceworkflow
Salary advanceworkflowSalary advanceworkflow
Salary advanceworkflow
 
13088674 oracle-adf-11g-learning-application-my-procurement-application
13088674 oracle-adf-11g-learning-application-my-procurement-application13088674 oracle-adf-11g-learning-application-my-procurement-application
13088674 oracle-adf-11g-learning-application-my-procurement-application
 
Use case 1 User LoginActor Admin, Faculty, or StudentBa.docx
Use case 1 User LoginActor Admin, Faculty, or StudentBa.docxUse case 1 User LoginActor Admin, Faculty, or StudentBa.docx
Use case 1 User LoginActor Admin, Faculty, or StudentBa.docx
 
Mca 504 dotnet_unit5
Mca 504 dotnet_unit5Mca 504 dotnet_unit5
Mca 504 dotnet_unit5
 
PEGA Naming standards for pega rules | PEGA PRPC Training
PEGA Naming standards for pega rules | PEGA PRPC TrainingPEGA Naming standards for pega rules | PEGA PRPC Training
PEGA Naming standards for pega rules | PEGA PRPC Training
 
2.business object repository
2.business object repository2.business object repository
2.business object repository
 
need help completing week 6 ilab.. i will upload what I currently ha.docx
need help completing week 6 ilab.. i will upload what I currently ha.docxneed help completing week 6 ilab.. i will upload what I currently ha.docx
need help completing week 6 ilab.. i will upload what I currently ha.docx
 
Il 09 T3 William Spreitzer
Il 09 T3 William SpreitzerIl 09 T3 William Spreitzer
Il 09 T3 William Spreitzer
 
Rinkeshkumar Bhagat Portfolio
Rinkeshkumar Bhagat PortfolioRinkeshkumar Bhagat Portfolio
Rinkeshkumar Bhagat Portfolio
 
Rinkeshkumar Bhagat Portfolio
Rinkeshkumar Bhagat PortfolioRinkeshkumar Bhagat Portfolio
Rinkeshkumar Bhagat Portfolio
 
Reports in Horizon
Reports in HorizonReports in Horizon
Reports in Horizon
 
Object Oriented Analysis and Design with UML2 part2
Object Oriented Analysis and Design with UML2 part2Object Oriented Analysis and Design with UML2 part2
Object Oriented Analysis and Design with UML2 part2
 
Sales force certification-lab
Sales force certification-labSales force certification-lab
Sales force certification-lab
 

Recently uploaded

How Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptxHow Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptxwottaspaceseo
 
A Comprehensive Appium Guide for Hybrid App Automation Testing.pdf
A Comprehensive Appium Guide for Hybrid App Automation Testing.pdfA Comprehensive Appium Guide for Hybrid App Automation Testing.pdf
A Comprehensive Appium Guide for Hybrid App Automation Testing.pdfkalichargn70th171
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns
 
Advanced Flow Concepts Every Developer Should Know
Advanced Flow Concepts Every Developer Should KnowAdvanced Flow Concepts Every Developer Should Know
Advanced Flow Concepts Every Developer Should KnowPeter Caitens
 
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume MontevideoVitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume MontevideoVitthal Shirke
 
AI/ML Infra Meetup | Perspective on Deep Learning Framework
AI/ML Infra Meetup | Perspective on Deep Learning FrameworkAI/ML Infra Meetup | Perspective on Deep Learning Framework
AI/ML Infra Meetup | Perspective on Deep Learning FrameworkAlluxio, Inc.
 
Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus
 
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024Globus
 
Understanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSageUnderstanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSageGlobus
 
A Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdfA Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdfkalichargn70th171
 
Using IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New ZealandUsing IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New ZealandIES VE
 
Agnieszka Andrzejewska - BIM School Course in Kraków
Agnieszka Andrzejewska - BIM School Course in KrakówAgnieszka Andrzejewska - BIM School Course in Kraków
Agnieszka Andrzejewska - BIM School Course in Krakówbim.edu.pl
 
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...Globus
 
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar
 
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...Globus
 
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...informapgpstrackings
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2
 
Abortion ^Clinic ^%[+971588192166''] Abortion Pill Al Ain (?@?) Abortion Pill...
Abortion ^Clinic ^%[+971588192166''] Abortion Pill Al Ain (?@?) Abortion Pill...Abortion ^Clinic ^%[+971588192166''] Abortion Pill Al Ain (?@?) Abortion Pill...
Abortion ^Clinic ^%[+971588192166''] Abortion Pill Al Ain (?@?) Abortion Pill...Abortion Clinic
 
Into the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdfInto the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdfOrtus Solutions, Corp
 

Recently uploaded (20)

How Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptxHow Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptx
 
Corporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMSCorporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMS
 
A Comprehensive Appium Guide for Hybrid App Automation Testing.pdf
A Comprehensive Appium Guide for Hybrid App Automation Testing.pdfA Comprehensive Appium Guide for Hybrid App Automation Testing.pdf
A Comprehensive Appium Guide for Hybrid App Automation Testing.pdf
 
Prosigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns: Transforming Business with Tailored Technology Solutions
Prosigns: Transforming Business with Tailored Technology Solutions
 
Advanced Flow Concepts Every Developer Should Know
Advanced Flow Concepts Every Developer Should KnowAdvanced Flow Concepts Every Developer Should Know
Advanced Flow Concepts Every Developer Should Know
 
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume MontevideoVitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume Montevideo
 
AI/ML Infra Meetup | Perspective on Deep Learning Framework
AI/ML Infra Meetup | Perspective on Deep Learning FrameworkAI/ML Infra Meetup | Perspective on Deep Learning Framework
AI/ML Infra Meetup | Perspective on Deep Learning Framework
 
Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
 
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024
 
Understanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSageUnderstanding Globus Data Transfers with NetSage
Understanding Globus Data Transfers with NetSage
 
A Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdfA Comprehensive Look at Generative AI in Retail App Testing.pdf
A Comprehensive Look at Generative AI in Retail App Testing.pdf
 
Using IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New ZealandUsing IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New Zealand
 
Agnieszka Andrzejewska - BIM School Course in Kraków
Agnieszka Andrzejewska - BIM School Course in KrakówAgnieszka Andrzejewska - BIM School Course in Kraków
Agnieszka Andrzejewska - BIM School Course in Kraków
 
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
 
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBroker
 
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...
 
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
 
Abortion ^Clinic ^%[+971588192166''] Abortion Pill Al Ain (?@?) Abortion Pill...
Abortion ^Clinic ^%[+971588192166''] Abortion Pill Al Ain (?@?) Abortion Pill...Abortion ^Clinic ^%[+971588192166''] Abortion Pill Al Ain (?@?) Abortion Pill...
Abortion ^Clinic ^%[+971588192166''] Abortion Pill Al Ain (?@?) Abortion Pill...
 
Into the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdfInto the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdf
 

Salesforce Loop and Assignment Flows for Beginners.pptx

  • 1. Loop and Assignment Flows for Beginners BY DIRK KEATON I love to talk about flows. Email me or reach out on LinkedIn (Scan here)
  • 2. Questions Have you made a loop from scratch? When was the last time you made a loop?
  • 3. Our Goals Create flows Look up record Id’s and assign them to variables
  • 4. When do you use a loop? When you want to update multiple child objects using details from a parent. ◦ When the address is added to a household account, the address field will be updated on all related contacts who don’t have an address When you want a change to a parent object to trigger changes in multiple child objects ◦ When an account changes its record type to client, all related contacts have their record type changed to customer. When you want an action to “fire” based on a change to a parent ◦ An email is sent to all contacts connected to an opportunity when the opportunity status is updated.
  • 5. The scenario Our organization created the position of auditor to look over all cases that are potential liabilities to see if we can improve our processes. All cases meeting these criteria need to get assigned to the auditor. Supervisors should be able to distinguish cases under audit. The auditor should be able to access them in an editable list view.
  • 6. What will our loop do? It will assign cases to a user based on their title It will update the cases with a checkbox so supervisors can tell them apart. It will assign cases to a record type
  • 7. What we will have at the end All cases that are potential liabilities will be assigned to the new user and a new record type. This user will be able to create and edit them in a convenient list view.
  • 8. Create a user Make sure to make them a service cloud user. Make sure to use this title
  • 9. Create a checkbox Give yourself access to edit. If you do not, the flow will not work.
  • 10. Build a record triggered flow
  • 11. Begin by choosing an object This window will immediately appear. For the object, choose user. Set the flow to “trigger” when a record is created or updated We choose this because people’s job titles in the real world change.
  • 12. Select the following entry conditions
  • 13. Create a get records element Name it “liability test” Get a “case” Filter so that PotentialLiability equals Yes
  • 14. Select the following options As you get more comfortable with loop flows, feel free to experiment with Choose Fields and Assign Variables—it’s a great option when you only need 1 or 2 fields from an object, and it helps make the flow run a little faster. Select “all records”—this will make it a record collection
  • 15. We use this collection variable in a loop If you don’t see it, go back and make sure you chose to store all records
  • 16. Create an assignment object Select “current item from loop across cases” then under audit Select “true” as the value. It will check the “under audit” box.
  • 17. Assign the cases to your auditor Create a new line. Then select current item from loop across cases ownerid Then, select {$record.Id} Flow “sees” records using their ID. You can’t assign a record (i.e. user, contact) to a lookup field without using the ID.
  • 18. Create the collection variable Each edited record needs to be added to a new collection. Next, create a new collection variable of the same type as the record (e.g. cases) to store it. While this isn’t strictly necessary, I do like this practice for learning. It also helps because there are times where you need to re-use the first variable.
  • 19. Adding to the collection On the same assignment action, add another line. Select the “add” operator. Then, select “loop across cases” You may get an error or the system may try to add a field name after {!Loop_across_cases} Ignore it and do not include a period. Click “outside” the box to ignore it.
  • 20. Use an update record action to update the records in collect cases
  • 21. Create a new Auditor You will need to deactivate your old auditor if you are doing this in a hands-on org due to limits on salesforce licenses
  • 22. If the flow is working correctly, your closed cases will look like this
  • 23. Create A New Record Type & Support Process We now want to assign the accounts that were under audit to an account record type. This will let us see a list view of them and do inline edits from that list view. To do that create a case under audit support process and record type.
  • 24. Get the ID for this record type Create a new get records element (I called it recordtype under audit
  • 25. Get the ID for this record type Then, get a “record type” object. Make the name equal case under audit You can get the recordtype of any object (custom or otherwise) this way.
  • 26. Create a second loop right after the first Add “collect cases” (your updated variable) to this loop
  • 27. What do we do next? Assign that ID to the current item in the loop
  • 28. What do we do next Create a collection variable Start a new line and add things to it!
  • 29. Add records Replace the variable in your old update record element with WithID Debug and see what happens! All the changes get passed!
  • 30. The final flow looks like this Now activate it. If you want to re-run the flow, make a new auditor or give your employee a new title, then switch it back to auditor.
  • 31. Make a list view
  • 32. What the List View Looks Like

Editor's Notes

  1. My background is a teacher—math teacher. We make you work. What we won’t do is use a screen flow. Screen flows are great, but they discourage you from using recorded’s
  2. Ask the group. Also ask for an example of each. I don’t want to focus on the goal here, but it’s worth mentioning because loops aren’t used for the same reasons they used to be used.
  3. I picked this because this is something I have to do a lot. Loops help you react to changes in how your org works.
  4. Switch at this point. Ask what kind of flow should we make.
  5. Ask what kind of object will trigger it. When should it trigger?
  6. Ask about entry conditions. SAVE AND DEBUG CONSTANTLY.
  7. Anybody have any ideas. We want to get all the opportunities for our new employee.
  8. What’s our next step?
  9. Now, we have to give it to them.
  10. Debug now. Are we ready to go?