I have a requirement where I want to create an action using LWC component. But I am facing the below issue while creating the quick action
As per the Salesforce release documentation, I have copied the targets but still, it is not working.
LWC component metadata file is as follows:
-
I also tried with the actionType as ScreenAction, still it is not working.
Does anyone have any idea about this? How to add LWC as a quick action?
As per the this Salesforce documentation, We need to use lightning-quick-action-panel with the lightning__RecordAction target to use your custom component as a quick action on a record page. But there is no information available about the lightning-quick-action-panel in the Component reference documenation.
Note – I don't want to wrap the LWC component inside Aura component and use it as a Quick action.
Thanks in advance.
Best Answer
As the error states:
That means that you can use LWCs as Quick Actions, but not on Work Orders. The documentation also says:
LWCs only recently gained any Quick Action support, and it will likely take some time before all/most objects are supported. For now, you do need to use the Aura Component wrapper workaround until support is added.