Configures the component for a record action and defines component properties. The targetConfigs tag contains at least one targetConfig tag.
targetConfig
Configures a page type with this attribute.
Attribute
Description
Required
targets
Specify one or more page types in the targets attribute, such as <targetConfig targets="lightning__GlobalAction"> or <targetConfig targets="lightning__GlobalAction,lightning__AppPage">. The targets attribute value must match one or more of the page types that you listed under <targets>.
Yes
actionType
Specify the type of Lightning web component global action. Valid values are:
ScreenAction—(Default) Runs custom code in a modal window
Action—Runs custom code without opening a modal window
The default value is ScreenAction.
lightning__GlobalAction doesn’t support component properties.
Usage
LWC global quick actions are available for use only in the Field Service mobile app. These actions aren’t available in Lightning Experience on mobile or desktop.
To access the global action from the bottom navigation bar on the Field Service mobile app, from Setup, in the Quick Find box, enter Publisher Layouts, and then select Publisher Layouts. Add the action to the Salesforce Mobile and Lightning Experience Actions section of the global publisher layout.
To enable a component to be used as a quick action on a record page record, use lightning__RecordAction instead.
You can’t change the action type after you’ve defined it in the configuration file. For example, you can’t change a component’s action type from Action to ScreenAction or vice versa after you deploy your component.
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.