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
Darshan Chhajed 4Darshan Chhajed 4 

custom list view button in lightning

I have a requirement where I want to have a custom list view button with an ability to perform a mass custom action in the Lightning environment.
I do not see an option to add lightning quick-action on the list view.

Is there any way to have a custom list view button on a custom object in the lightning environment?
Rahul KumarRahul Kumar (Salesforce Developers) 
Hi Darshan,
I hope it will be helpful.

Best Regards
Rahul Kumar
Nilesh DetheNilesh Dethe
Hi Darshan,

This might be helpful - https://developer.salesforce.com/blogs/developer-relations/2016/09/take-the-first-steps-ways-you-can-replace-javascript-buttons.html
 
You can create a lighting component to perform the mass actions and load that component in the visualforce page using lighting out and then you can add that visualforce page on custom list view button as shown in above blog.
 
As per lighting experience roadmap - https://help.salesforce.com/articleView?id=lex_roadmap.htm&type=0&language=en_US&release=204.15
The “Lightning Mass Actions: Act on multiple records from a list view using a Lightning action”  feature will be coming in near future release so design above component in such way that it will be reused once this feature gets available.

I hope this will be helpful.

Best Regards,
Nilesh Dethe