Switch Statement in Flow Designer

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2019 08:40 AM
What is the best way to replicate the switch statement functionality of Workflow in the new Flow Designer? I've briefly looked into decision tables but can't tell if that is the best way to do it in Flow... it would certainly take a lot more time to setup.
- Labels:
-
Best Practices

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2019 09:05 AM
It appears the Make a Decision flow logic is intended to replace the switch statement in Workflow and make it more efficient. You can call a Workflow from Flow Designer on Madrid if you already have a published Workflow whose switch statement functionality you want to re-use.
More information about calling a Workflow in Flow Designer can be found here.
More information about the Make a Decision logic can be found here and here.
The Flow Designer release notes, found here, may also help direct you to what your options are.
Please mark helpful/correct if this answered your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2019 09:14 AM
Thanks. I also asked the ServiceNow team about this and they said either use the make a decision logic or use multiple If statements depending on the amount of logic required. Hoping an easier way comes in New York as switch statements were very easy to setup.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2023 11:57 AM
Hi, Could you share any advice on this?
Did you have to create new decision table?