---
schema_version: "1"
id: df4f191fe8e7e63036620d825c5b5b49910f76c9250d8902fcb69024846dd120
title: Create a Lightning Web Component Action
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/lightning_web_component_actions_create.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.lightning_web_component_actions_create.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 416e38c98f7194ec8bc333cdeac6ccf889f7e305cbed45035a86698d3b667388
description: 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.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# 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

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Group</strong>, <strong>Professional</strong>, <strong>Enterprise</strong>, <strong>Performance</strong>, <strong>Unlimited</strong>, <strong>Contact Manager</strong>, <strong>Database.com</strong>, and <strong>Developer</strong> Editions</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d149827e85">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d149827e85 ">To create actions:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d149827e85 ">Customize Application</td>

          </tr>
        </tbody>
      </table>

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](https://developer.salesforce.com/docs/platform/lwc/guide/migrate-lwc.html) in the Lightning Web Components Developer Guide.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/images/icon_note.png)

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](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/images/icon_tip.png)
    
    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](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/images/icon_note.png)

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.

#### See Also

- [Lightning Web Components Developer Guide: Use Quick Actions](https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.use_quick_actions)
- [Add Quick Actions to the Case Page Layout for Lightning Experience](https://help.salesforce.com/s/articleView?id=case_interaction_add_actions_to_page_layout_lex.htm&language=en_US)
- [Create Dynamic Actions in Lightning App Builder](https://help.salesforce.com/s/articleView?id=lightning_app_builder_create_dynamic_action.htm&language=en_US)