Embed Lightning Component in Flow

To create a new flow, Go to Setup -> Quick Find Box -> Flows -> New Flow
and you can learn more about how to create flows in Salesforce

Also Read: How to Create a Salesforce Lightning Map Component?
Lightning Components
Salesforce Lightning Components

If you want to use Lightning Components, you need to create Screen flow so that you can fill values in Lightning Component.

You need to add the screen in the flow from the left panel, it will open the screen which has all the components like text, date, currency, and address, etc. My Flow:

From here you can add any custom lightning components and also download it from AppExchange. Here is a demo of custom Lightning Component.

Component

<aura:component implements="lightning:availableForFlowScreens,lightning:availableForFlowActions,force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickAction" access="global" >
 <aura:handler name="init" value="{!this}" action="{!c.doInit}"/>
 <ui:message title="Regarding Vote" severity="info" closable="true">
   Please Click the below button to Vote.
 </ui:message>
</aura:component>

Controller

({
 doInit : function(component, event, helper) {
  alert("Hello");
 }
})
Lightning Components Flow
Lightning Components Embed Salesforce
Lightning Components Embed

My Flow to create a record.

When started debugging the flow it will first show the component output:

Lightning Components Output

After clicking on ok, it enters to the flow.

Emizentech is one of the leading salesforce consultants offering custom salesforce solutions to businesses and organizations for a long time. So, if you have a salesforce project please get in touch with us.

Also Read: How To Relate a Contact To Multiple Accounts and Learn about Pipedrive and Salesforce Integration
Avatar photo
Author

With a decade of experience in eCommerce technologies and CRM solutions, Virendra has been assisting businesses across the globe to harness the capabilities of information technology by developing, maintaining, and improving clients’ IT infrastructure and applications. A leader in his own rights his teammates see him as an avid researcher and a tech evangelist. To know how the team Virendra can assist your business to adopt modern technologies to simplify business processes and enhance productivity. Let’s Talk.

whatsapp