Dynamic Launching of Screen Flows

Suppose you have 20 screen flows representing 20 different business processes, and you want to dynamically determine which one a user should be brought to. One way to do this is to have a master flows with 20 subflows and a big decision element. That’s a little inflexible, though. Each time you add or delete something you have to change the master flow. And managing the big decision element takes work that it would be nice to be able to avoid.

Let’s look at a different approach.

Install

Unmanaged 1.1 this installs the Get the demo flow from the video, including the Flow List FSC picker and the Open URL Flow Action

For a more recent version of the specific Load Flow Dynamically that works with Schedule Flow triggers, see this.

The sample Flow we use in the above video incorporates two components:
1) a Flow List component provides users with a list of flows to choose from.
2) A new Open URL Flow Action launches the chosen screen flows by URL.

Of course, you don’t have to leave the choice of flow up to the user who is running the flow. You can generate the name of the flow to launch via your own flow logic.

Also see: https://unofficialsf.com/generate-urls-that-launch-flows-with-generate-flow-link/

View Source

Source

Subscribe
Notify of
guest
5 Comments
Inline Feedbacks
View all comments
Ryan Cox
Alex Edelstein

thanks, fixed

[…] Launch Flow Dynamically action to work around this limitation. This flow previously was discussed here. The new version 1.2 has a boolean attribute called UseFutureLaunch that can be set to True to […]

[…] can have your component load the Flow by URL. This will either load the Flow into a new tab or a new window, or you can have it overwrite your […]

[…] year, UnofficialSF published a method for dynamically launching subflows. FlowButton improves on that method in two useful […]