Newer Version Available
Runtime Considerations for Flows That Include Lightning Components
Depending on where you run your flow, Lightning components may look or behave
differently than expected. The flow runtime app that's used for some distribution methods
doesn't include all the necessary resources from the Lightning component framework. When a flow
is run from the Cloud Flow Designer or a direct flow URL
(https://yourDomain.my.salesforce.com/flow/MyFlowName), some base Lightning components look
different because styling resources are missing, and force
and lightning events aren’t handled.
To verify the behavior of your Lightning components, test your flow in a way that handles force and lightning events, such as force:showToast. You can also add the appropriate event handlers directly to your component.
| Distribution Method | Handles force and lightning Events |
|---|---|
| Direct flow URL | |
| Run, Run Latest, and Debug buttons in the Cloud Flow Designer | |
| Run links on the flow detail and list pages | |
| Web tab | |
| Custom button or link | |
| Lightning page | ![]() |
| Lightning community page | ![]() |
| Flow action | ![]() |
| Utility bar | ![]() |
| flow:interview Visualforce component | |
| lightning:flow Lightning component | Depends on where you embed the component or whether your component includes the appropriate event handlers |
