I'm working on a Quick Action for the first time (ScreenAction in this case) for a Task object. I've created an LWC component, embedded in the Aura component to make it available for Task.
<aura:component implements="force:lightningQuickActionWithoutHeader, force:hasRecordId">
<c:LWC recordId="{!v.recordId}">
</aura:component>
The problem is that in LWC I cannot get the recordId
of the Task. I've tried using @api recordId
, connectedCallback
and renderedCallback
but nothing worked for me, everytime the result was undefined
. Why is it like that? Is Task object the reason or is it something else?
recordId
is fetched correctly aura component to begin with?