Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Create a Quick Action with an LWC
To create a Quick Action with an LWC, the LWC must have a target of type lightning__RecordAction defined in the component’s meta.xml file:
1<?xml version="1.0" encoding="UTF-8"?>
2 <LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
3 <apiVersion>59.0</apiVersion>
4 <isExposed>true</isExposed>
5 <targets>
6 <target>lightning__AppPage</target>
7 <target>lightning__HomePage</target>
8 <target>lightning__RecordAction</target>
9 </targets>
10 </LightningComponentBundle>After a component is deployed to Salesforce, create a Quick Action that uses it. For details, see Quick Actions in the Lightning Web Components Developer Guide.