I would like to have a list view button that goes to a URL that starts a flow. However, if the URL is just the link to the flow (for example, "/flow/<flow_name>"), the user is redirected to another page where the flow takes place, I would be interested in having the flow appear in a modal pop up window, in the same page where the user is when clicking the list button.

For example, imagining that the "Launch My Flow" button is a list view button:

enter image description here

There is a component in the app exchange to run flows in modal (pop-up) windows, however unfortunately it doesn't work for flows invoked from list view buttons: https://appexchange.salesforce.com/appxListingDetail?listingId=a0N3A00000FMYinUAH

What I've found for now:

In other posts, I've read that a Lightning Web Component to show a modal window is required and that the flow should open inside that Lightning Web Component. Here's an example of a Lightning web component that creates a modal pop up: https://www.lopau.com/creating-a-modal-popup-in-a-lightning-component/

I've also found this post in the Salesforce Developer Forum, where a Lightning Component is recommended to launch a flow in a modal window: https://developer.salesforce.com/forums/?id=9060G0000005Z2NQAU However, it is not stated what the URL of the button has to be in order to invoke the lightning component. That post has 9 upvotes so I may be missing something that I don't understand.

I don't understand the full process from the URL that has to be introduced, the Lightning Component that is invoked, and the flow that is started. Can someone help me out with this process?

Is it possible to invoke a Lightning Web Component through the button URL, for example "/lightning/cmp/<Component_name>" and that this component opens a modal window in the same list view where the user is at?

What are your thoughts?

Thanks very much!


1 Answer 1


Based on sf documentation, opening a LWC from a list view button or action isn't directly supported. But here's some links I found for workarounds that might help: https://codingwiththeforce.com/salesforce-development-tutorial-lwc-how-to-use-lightning-web-components-in-list-view-buttons/


and here's a possibility if you wrapped your LWC in an aura component: How can Lightning components be opened from a list view?

Also you can search for and upvote ideas related to this on the IdeaExchange, which encourages SF to include features like this on their roadmap. If there isn't an idea that already exists, you can submit one yourself: https://ideas.salesforce.com/

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .