function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Josephine ButJosephine But 

Quick action button for component(lwc) on the list view

Hi,
  I want to add a quick action button for my component(lwc) on the list view. And in my js-meta.xml, I added the following :

<targets>
<target>lightning__AppPage</target>
<target>lightning__HomePage</target>
<target>lightning__RecordPage</target>
<target>lightning_RecordAction</target>
</targets>
<targetConfigs>
<targetConfig targets="lightning_RecordAction">
<actionType>Action</actionType>
</targetConfig>
</targetConfigs>

but I got the following error message when I tried to add it to my org:
'lightning_RecordAction' target is not a valid target.

Anyone knows how to add a quick action button to the component (lwc) on the list view? Any example or reference is appreciated.

Thanks,
   Jo
Julien SalensonJulien Salenson
Hi Josephine,

Please, check out this link to a complete tutorial on How to use Lightning Web Component’s in List View Buttons :
https://codingwiththeforce.com/salesforce-development-tutorial-lwc-how-to-use-lightning-web-components-in-list-view-buttons/

Thanks for liking my comment if it helps you.
Julien