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
Dan LordDan Lord 

execute an LWC component from a button on a custom object list page

I would think this would be something which is straightforward, but as far as I can tell it is not. I hope I'm wrong.

I want to place a button on a custom object list page which will execute a LWC. 

What I HAVE tried is to use lightning out from a Visual Force page attached to the button, but this doesn't allow me to use NavigationMixin.Navigate, nor it seems window.open(url). Also, it doesn't seem to allow the use of ShowToastEvent.

Also, since Salesforce is encouraging the use of LWC, I would be surprised if there is not a way to call the LWC component directly from the button.

Ideas? Advice?
Naveen KNNaveen KN
I think you can make use of LWC Quick Actions for this scenario. This feature was enabled in the last release. 
Dan LordDan Lord
Thanks, Naveen, for your response. I think, though, that Quick Actions will only work on a Record page. I'm working from an object List page.