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?
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");
}
})
My Flow to create a record.
When started debugging the flow it will first show the component 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.