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 ....

Salesforce

LWC for Flow in Salesforce

HTML: <template>     <lightning-datatable key-field="Id"                          data={contacts}                          columns={columns}                          hide-checkbox-column="true"                          show-row-number-column="true"                          onrowaction={handleRowAction}>     </lightning-datatable> </template> JavaScript: import { LightningElement, api, track } from 'lwc'; import { NavigationMixin ....