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?
Best Answer
LWC Quick Actions are not supported for Task object.
You'll get an error when creating a QA for LWC on Task record:
I managed to get the recordId from a Task record in an Aura Component:
Summary: It could be that your Aura Component does not receive recordId because of some typo in your code, or if it does receive, the whole component crashes because of the LWC embedded inside your Aura Component. Please check both of these possible scenarios.