PDI · Question #36
A Salesforce Administrator used Flow Builder to create a flow named `'accountOnboarding''. The flow must be used inside an Aura component. Which tag should a developer use to display the flow in the…
The correct answer is C. Lightning:flow. To embed a Salesforce Flow into an Aura component, the standard Salesforce lightning:flow component is used, with the flowApiName attribute specifying the flow to display.
Question
A Salesforce Administrator used Flow Builder to create a flow named `'accountOnboarding''. The flow must be used inside an Aura component. Which tag should a developer use to display the flow in the component?
Options
- ALightning-flow
- BAura:flow
- CLightning:flow
- DAura:flow
How the community answered
(19 responses)- A5% (1)
- C95% (18)
Why each option
To embed a Salesforce Flow into an Aura component, the standard Salesforce `lightning:flow` component is used, with the `flowApiName` attribute specifying the flow to display.
`lightning-flow` with a hyphenated tag name typically indicates a Lightning Web Component (LWC) syntax, not an Aura component.
`Aura:flow` is not a standard component provided by the Salesforce platform for embedding flows.
The `lightning:flow` component is the correct standard Aura component to embed a Salesforce Flow into an Aura component, requiring the `flowApiName` attribute to specify which flow to display.
`Aura:flow` is a duplicate of B and is also incorrect as it is not a standard component for embedding flows.
Concept tested: Embedding Flows in Aura Components
Source: https://developer.salesforce.com/docs/component-library/bundle/lightning:flow/documentation
Topics
Community Discussion
No community discussion yet for this question.