Is there a way to execute a Flow manually (e.g. with a Fix Script)?

Patrick Schult2
Giga Guru

I have created a Flow which I need to run for all of my Server (cmdb_ci_server) records to populate an attribute that previously didn't exist. Without the use of a flow, my go-to would have been to do this with a Fix Script.

What I want to do is basically tell the Flow to trigger once per each record in the table. Is there a class I can invoke in a Fix Script to manually trigger a Flow?

4 REPLIES 4

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hello Patrick,

 

There is no way currently to trigger the flow unless each record is created/updated manually or via script.

 

I invite you to open an enhancement request! Our product managers DO listen.

 

Thanks,

Pradeep Sharma

Prateek Gupta3
Mega Guru

Hi,

 

Please schedule the workflow you have created. On schedule page, there is one button "Execute Now". Whenever you want to run the flow, click on the button.

 

Hope this is correct.

 

Thanks,

Prateek Gupta

DrewW
Mega Sage
Mega Sage

Just for completeness and for others who find this there is now a way to do this now.

https://developer.servicenow.com/dev.do#!/reference/api/madrid/server_legacy/ScriptableFlowAPI?navFi...

 

DirkRedeker
Mega Sage

Hi

Yes you can:

find_real_file.png

BR

Dirk