How can screen flows be utilized to build custom guided selling flows directly on opportunity pages?
Answer
Basics: A screen flow shows a series of screens and runs logic between them. Embedding it on an Opportunity guides reps through qualification questions, product selection and required fields, replacing long, error-prone page layouts.
How it works:
- Create a screen flow with a text input variable named recordId (Available for input).
- Get Records for the Opportunity, show Screens (Dynamic Choice picklists, Data Table for products, conditional visibility, reactive components), then Create/Update Records.
- In Lightning App Builder, drag the Flow component onto the Opportunity page, select the flow and map recordId to {!recordId}.
- Or create a Flow quick action, or place the flow in a modal from a button.
- Set Finish behavior (show a message, navigate with a Navigation element, refresh).
Advanced / deep dive: Use subflows for reuse, validation with screen-level conditions, and fault paths. Use Opportunity Path with key fields and guidance in parallel for stage-based coaching. For product configuration, loop through selected products and build a collection, then do a single Create Records outside the loop to stay bulk-safe. Flow runs in user context by default for screen flows launched from the UI, so FLS and sharing apply; you can change it in flow settings (system context with or without sharing). Each screen starts a new transaction, so limits reset between screens. A flow interview can execute at most 2,000 elements at runtime.
Code / config example: Launch the flow from LWC:
<template>
<lightning-flow flow-api-name=
=
=>