The Zurich release has arrived! Interested in new features and functionalities? Click here for more

If/Else If in flow designer

kbsimm
ServiceNow Employee
ServiceNow Employee

In Flow Designer if I have an existing if statement how do I make that if statement an else if statement and insert a new if statement before it.  For example if we look at the OOB Create Incident SubFlow it has an if statement "If Alert is not already closed". The bulk of the work for creating the incident occurs if that if is true.  I need to insert some logic before that if statement such as:

if condition

   then do something

else If "Alert is not already closed"

  then do all the OOB incident creation actions.

I can of course start over and rebuild the entire SubFlow but I don't want to do that. 

Or I can add an else if after the if and rewrite each but then I have to move all the content from the if to the else if and that will loose all the data pills already in place.  

 

I need to be able to select before the if and say make a new if and make this if an else if. 

1 ACCEPTED SOLUTION

AnveshKumar M
Tera Sage
Tera Sage

Hi @kbsimm 

Unfortunately flow designer doesn't support converting an if logic to else if logic . And you have to move them to the new block.

 

Thanks,
Anvesh

View solution in original post

2 REPLIES 2

AnveshKumar M
Tera Sage
Tera Sage

Hi @kbsimm 

Unfortunately flow designer doesn't support converting an if logic to else if logic . And you have to move them to the new block.

 

Thanks,
Anvesh

Community Alums
Not applicable

Hi @kbsimm ,

SandeepDutta_0-1681790278632.png

 

The **Else If** logic was evaluated true and went to the next step of **Update Record** where **Request Cancelled** stage was used.
When the flow hits this stage, it will trigger the **cancel flow on request cancelled** business rule and cancels the entire flow execution.
So, it will not run the action.