Else if in flow designer

preethigovi
Tera Contributor

Hi Team,

If assignment group is empty in incident i have flow that calls another subflow.

But i wanted to implement logic where if short description has SAP assign to separate group using existing flow designer.

 

Also is there any way to script in the condition of if statement in flow designer

preethigovi_0-1748527404068.png

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@preethigovi 

you can use a flow variable of type true/false

Then use "Set Flow Variable" flow logic and use script to set it with true/false

Then use this Flow Variable value in IF logic

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

7 REPLIES 7

@preethigovi 

you can have it at the beginning if you are planning to use that flow variable in subsequent flow actions.

It all depends on your requirement.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

It worked Thank You. will test use cases further.

That completely depends on the logic you want to implement. If, no matter what, when the flow is triggered and the short description contains SAP it has to be assigned to that group, you don't need to check on an empty assignment group. If it is for assigning only when not yet done, you do it after the check on 'assignment group = empty'. But you don't need flow variables. Just do an 'if short description contains SAP' and then an 'update incident' action.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark