4

Actually, I know how to show a screen flow in custom action but wanted to know - Is there any mean to show a screen flow as a list view button?

and if yes then how?

Thanks in advance.

1 Answer 1

4

As of today (Spring 22), there isn't a true equivalent of the Flow Quick Action for List Views, per se.

You can launch a Flow from List Views, however.

Get the Flow's URL (you can see it when you click into the Flow's Details and Versions).

Flow Details and Versions

Then, in the Object Manager, add a List button to the object, and use the flow's URL as for the button.

List button in Object Manager

And add the button to the Object's List View Buttons:

Edit List View settings in Object Manager

Adding button to List Views

There are some more advanced approaches, such as an aura lightning component with the flow embedded in it using lightning:flow or a Visualforce page with the flow embedded (this VF-embedded flow approach is least-ideal, as the Flow will be in classic run-time).

Undocumented Hack Warning

You can also get the selected record IDs into the flow if your flow has a collection variable called ids (all lower case- it is case sensitive). This is undocumented, but it does work and has worked for several years.

4 Records Selected in List View

4 Selected Records in the Flow

2
  • 1
    Thank you so much, Jeff Kranz, for such a detailed explanation; it was beneficial, and I am grateful to you for taking that much pain. Thank you so much, brother.
    – Amit Kumar
    Feb 12 at 22:21
  • 1
    On Summer 22, weirdly, the only way I could get the ids value to show up in the flow was to switch the list button to "Display in existing window without sidebar or header". Otherwise the ids variable was empty
    – jeromegv
    Jul 7 at 23:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.