Add the #DF24 Developer Keynote to your agenda. Join us in-person on 9/19 at 2:30 p.m. PT or on Salesforce+ at 5 p.m. PT for the must-see session built just for developers.

lightning__GlobalAction Target

Enables a component to be used as a global quick action. For use only in the Field Service mobile app.

Configures the component for a record action and defines component properties. The targetConfigs tag contains at least one targetConfig tag.

Configures a page type with this attribute.

AttributeDescriptionRequired
targetsSpecify 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
actionTypeSpecify 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.

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.

See Also