Loading
Extend Salesforce with Clicks, Not Code
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Create a Lightning Web Component Action

          Create a Lightning Web Component Action

          Creating a Lightning web component (LWC) action is similar to creating a regular quick action, and you do it in the same place in Setup for most supported objects. All you need is an LWC in your org for the quick action to trigger.

          Required Editions

          Available in: Lightning Experience
          Available in: Group, Professional, Enterprise, Performance, Unlimited, Contact Manager, Database.com, and Developer Editions
          User Permissions Needed
          To create actions: Customize Application

          You can create a Lightning web component action for custom objects and for Salesforce record home objects that are enabled for LWC. If you can’t create actions with the Lightning Web Component action type, they’re not currently supported for that object. For more information, see LWC Migration for Record Home Pages in the Lightning Web Components Developer Guide.

          Note
          Note When feed tracking is enabled for cases, you can’t use the page layout to add a Lightning web component action to the Highlights Panel of a case record. Add Lightning web component actions to a case record page’s Highlights Panel as dynamic actions in Lightning App Builder.
          1. From Setup, click Object Manager, click the object that you want to create the action for, and then click Buttons, Links, and Actions.
          2. Click New Action.
          3. For Action Type, select Lightning Web Component.
          4. Select the component that you want the action to call.
          5. Enter a label for the action. Users see this label as the name of the action.
            Tip
            Tip You can choose an option from the Standard Label Type list to have Salesforce generate the label. For the labels in this list that include Record and Record Type, Salesforce fills in the type of object or the record type the action creates. For example, if you choose the Create New Record standard label on a create contact action, the generated label is Create New Contact.
          6. If necessary, change the name of the action. If you selected a standard label type in the previous step, you must enter the name.
            This name is used in the API and managed packages. It must begin with a letter and use only alphanumeric characters and underscores, and it can’t end with an underscore or have two consecutive underscores. Unless you’re familiar with working with the API, we suggest not editing this field.
          7. Type a description for the action.
            The description appears on the detail page for the action and in the list on the Buttons, Links, and Actions page. The description isn’t visible to your users. If you’re creating several actions on the same object, we recommend using a detailed description, such as “Create Contact on Account using New Client record type.”
          8. Optionally, to select a different icon for the action, click Change Icon.

          When you finish creating your action, add it to the Lightning Experience Actions section of the desired page layout, such as the opportunity page layout, and your users can start using it.

          Note
          Note Headless Lightning web component quick actions are available only on record pages in Lightning Experience and LWR sites created in Experience Cloud. They’re not supported in Aura Experience Builder sites or on the Salesforce mobile app. Orgs with the Salesforce Field Service (SFS) mobile app support Lightning web component actions on additional objects. These actions appear only in the SFS mobile app and not in Lightning Experience on mobile or desktop.
           
          Loading
          Salesforce Help | Article