Advanced Flow Concepts Every Developer Should Know
PeterCaitens
103 views
16 slides
May 27, 2024
Slide 1 of 16
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
About This Presentation
Tim Combridge from Sensible Giraffe and Salesforce Ben presents some important tips that all developers should know when dealing with Flows in Salesforce.
Size: 30.71 MB
Language: en
Added: May 27, 2024
Slides: 16 pages
Slide Content
Salesforce Developer Group Brisbane, Australia @peter.caitens Group Leader: Peter Caitens
Group News Upcoming Events Tuesday May 28th 5pm - Virtual and In-person Data Cloud & Me with Matt Robison Thursday May 30th Kiwi Dreaming 2024 Tuesday June 4 - Virtual Trailhead Tuesday Next Session Monday June 17 - 12 pm Virtual Improving UI/UX in Screen Flows using Salesforce Lightning Design System (SLDS) with Tom Kitt
Advanced Flow Concepts Every Developer Should Know
Tim Combridge Managing Director
Agenda Back to Basics Concept 1: Subflows Concept 2: HTTP Callouts Concept 3: Flow Contexts Concept 4: Flow Access Concept 5: Custom Components/3rd Party
Firstly, Back to Basics Done to death — The foundations of Salesforce Flow have been discussed before - I want to spend time going through some more advanced concepts, but the basics are still extremely important. Key things to remember going forward: Minimise pink elements (DML) Use Collections and Loops for bulk data Use recordId record variable instead of a query Flow isn’t the only tool! As developers, you’re likely more familiar with Apex, LWC, etc. - there’s a great combination of Flow and programmatic tools. Connect with other Trailblazers to verify any questions you have - you’re not alone!
Concept 1: Subflows Autolaunched Flows called by other Flows. Repeatable actions that are required in multiple places Helps with maintenance - update once, apply everywhere NEW - Summer ‘24 brings Action Buttons to Screen Flow. Call a subflow from a Screen Flow, update reactive components WITHOUT leaving/refreshing that screen.
Concept 2: HTTP Callouts Use HTTP Callouts to create basic integrations between Salesforce and external services. Combine with Action Buttons to call external data in Screen Flow. Use Connect to Schema to get a sample JSON response. QR Code links to great tutorial by Daryl Moon (Certify CRM) on setting up HTTP Callouts, including example external service.
Concept 3: User Context vs System Context IMPORTANT: “With great p ower comes great r esponsibility.” - Uncle Ben Just because you can , doesn’t m ean you should . Use sparingly. User Context: Follows the sharing rules attached to the user that runs the Flow. System Context WITH Sharing: Follows Sharing Settings for user, but grants system-level object/field access. System Context WITHOUT Sharing: Full System access. USE SPARINGLY .
Concept 4: Flow Access Flowing on from the last section, consider who in the business is needing to access individual Flows. Each Flow can be configure to only be exposed to users with specific Profiles or Permission Sets. Consider the Principle of Least Privilege - give only what is required to avoid headaches in the future.
Concept 5: Custom Components/3rd Party Flow is great, but can also be expanded upon. AppExchange listings allow you to use existing solutions, also lots of third-party open source solutions. As developers you may consider creating custom LWC to embed within Screen Flows, or Apex Actions to expand functionality. Also other tools such as OmniStudio (for Industries customers), Approval Processes, Quick Actions, and Dynamic Forms.
Mentioned already, but Action Buttons are new in Summer ‘24 Call Autolaunched Flows in a Screen Flow, update reactive Flow components. Build your own custom reactive LWCs for Screen Flow, combine with Action Buttons to create some seriously cool experiences for users. Bonus: Action Buttons Yumi Ibrahimzade - Salesforce Time
Summary Use Subflows to replicate common functionality/actions across multiple Flows, reduce maintenance, combine with Action Buttons for Reactive Screen Flows. Integrate with external data sources using HTTP Callouts to push and pull data. Use (SPARINGLY (!!!!!)) System Context to bypass security under certain circumstances. Flow Access can be used to grant access to Flows to individuals with specific Profiles/Permission Sets. Enhance OOTB Flow with AppExchange solutions, Invocable Apex Actions, and custom LWC. Action Buttons are gonna be dope. Summer ‘24 is a big update in the Flow space.