[SalesForce] Not able to create a quick action using direct LWC in Summer 21 org

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

enter image description here

As per the Salesforce release documentation, I have copied the targets but still, it is not working.

LWC component metadata file is as follows:

  1. With the actionType as Action
    enter image description here

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

Lightning Web Components quick actions are not supported for this entity (emphasis mine)

That means that you can use LWCs as Quick Actions, but not on Work Orders. The documentation also says:

NOTE LWC quick actions are currently supported only on record pages.

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.

Related Topic