Salesforce Flow

Salesforce

How to pass record Id in Flow to Lightning Component in Salesforce?

Aura Component Code: FlowComponent.cmp: <aura:component implements="lightning:availableForFlowScreens"> <aura:attribute name="RecordId" type="String"/> <lightning:recordViewForm recordId="{! v.RecordId }" objectApiName="Account"> <div class="slds-box"> <lightning:outputField fieldName="Name" /> <lightning:outputField fieldName="Industry" /> </div> </lightning:recordViewForm> </aura:component> FlowComponent.design: <design:component> <design:attribute name="RecordId" label="Record ....