Cert++
Close

Lightning web component record actions

Key Takeaway

Setting up an LWC action has two parts: a developer configures the component, then an app builder creates the action in Setup and places it on the page.

A Lightning web component (LWC) action is a custom quick action that runs a Lightning web component from a record page in Lightning Experience. Users can run custom JavaScript logic with a single click. An LWC action supports JavaScript and is a secure way to build client-side functionality, so you can run custom logic on a record page while keeping your UI styles.

The two parts of setting up an LWC action

First, a developer builds the component and updates its configuration file, componentName.js-meta.xml. In that file, the developer adds lightning__RecordAction as a target and sets an actionType. A component that isn't configured this way can't be used as an LWC action. The lightning__RecordAction target doesn't support component properties.

Second, an app builder creates the LWC action in Setup and places it on the page.

Platform App Builder Study Guide

Checklist progress

0/340Learned

Describe the programmatic customizations available for incorporating custom Lightning components in an application.

0/8

Prepare for the Exam

Play Today's Certle

Study Community

Ask questions and get the latest info from other Platform App Builder studiers. 757 members and growing.