Flow Designer: dynamic stage

Andreas Cierpka
Kilo Guru

We are about to create a flow. All input parameters will be taken from GIT. The user will be in charge of creating a YAML file which will contain the information of the parameters and which ansible playbook the flow will call. The YAML file will contain as many input parameters and playbooks as required. The ServiceNow flow where we are in charge for will be generic to read this information and execute the calls. As we will not know how many 'externa' calls will be executed and we will not write for each application it's own workflow ....

Is there a way to create stages in ServiceNow which can be set dynamically like "Stage <call playbook abc>" where <call playbook abc>  is a variable?

3 REPLIES 3

Jugmaz
Kilo Sage

Not sure if i understood correctly but as far as i know, no new stages should be created.

if you absolutely need to, then of course, create one to sys_choice table for relevant table or so.

but, for this case, i would probably go with custom script action which will do the analyses of the payload and behave accordingly!?

MOdijk
Tera Contributor

You can create a different set of stages for each flow. I think the question here is if it is possible to dynamically set the stages when a flow is kicked off: This is useful when one flow is used to manage several items.

I have the very sames question which landed me here.

Vivek Vishnoi
ServiceNow Employee
ServiceNow Employee

Hi @Andreas Cierpka@MOdijk did you guys find any solution to render stages dynamically? I am also having the same requirement, any help is greatly appreciated.