Newer Version Available

This content describes an older version of this product. View Latest

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 Checkmark icon indicating true
Lightning community page Checkmark icon indicating true
Flow action Checkmark icon indicating true
Utility bar Checkmark icon indicating true
flow:interview Visualforce component
lightning:flow Lightning component Depends on where you embed the component or whether your component includes the appropriate event handlers