Use Case : On click of button on Lead record detail, you want to open popup and do some processing on that lead record.
1. Create Aura Component to wrap LWC component.
2. LWC component has all logic.
3. Create quick action button invoke Aura component.
Now how to pass record Id from URL to LWC component.
<aura:component implements="force:lightningQuickActionWithoutHeader,force:hasRecordId">
<c:cloneLead recordId="{!v.recordId}"/>
</aura:component>
Note - After Winter 21 onwards, we don't have to warp lighting aura component for LWC. Because LWC started supporting quick actions such headless action and flow action.
No comments:
Post a Comment