Using switch statement in Flow Designer

ceraulo
Mega Guru

Hello!

I have a catalog item with a variable called Request type. This variable has 5 values: RT A, RT B, RT C, RT D, RT E.

If I use the workflow editor, adding the switch login and selecting variable = Request type the options/values are automatically added.

However, in the Flow Designer there is no Switch option. Should I use the If flow logic? How do I select the variable name since I don't see any option.

Any advice?

Thanks!

1 ACCEPTED SOLUTION

Mark Roethof
Tera Patron

Hi there,

You are correct, there's no switch option in Flow Designer. You would indeed need to use Flow logic.

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark
2020-2022 ServiceNow Community MVP
2020-2022 ServiceNow Developer MVP

---

LinkedIn
Community article, blog, video list

View solution in original post

3 REPLIES 3

Mark Roethof
Tera Patron

Hi there,

You are correct, there's no switch option in Flow Designer. You would indeed need to use Flow logic.

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark
2020-2022 ServiceNow Community MVP
2020-2022 ServiceNow Developer MVP

---

LinkedIn
Community article, blog, video list

Ankur Bawiskar
Tera Patron

Hi,

As mentioned by Mark there is no direct way

Adding to his point

You can either use decision logic or use multiple If statements depending on the amount of logic required.

sharing link for reference

Make a decision flow logic

Regards
Ankur

@ceraulo 

Hope you are doing good.

Did my reply answer your question?

Would you mind marking the best matching answer as correct and helpful, to close this thread?

Thanks!
Ankur