See how to trigger a subflow in ServiceNow flow designer using a SERVER side script..in this example we use a UI Action script. We discuss the different flow api's we can play with: FlowAPI, ScriptableFlowRunner, GlideFlow (briefly) and take a look at how we use nifty ServiceNow flow designer features that give the code to use pre-built to trigger a flow from a script.
Note: We can use this same concept to trigger:
Flows
Subflows
Actions
Useful documentation to get your head around...or just bedtime reading:
https://docs.servicenow.com/bundle/sandiego-application-development/page/administer/flow-designer/concept/api-access-flow-designer.html
https://docs.servicenow.com/bundle/sandiego-application-development/page/app-store/dev_portal/API_reference/ScriptableFlowAPI/concept/ScriptableFlowAPI.html
https://developer.servicenow.com/dev.do#!/reference/api/sandiego/server/sn_fd-namespace/ScriptableFlowAPI
https://developer.servicenow.com/dev.do#!/reference/api/sandiego/server/sn_fd-namespace/ScriptableFlowRunnerScopedAPI
All done in a San Diego instance
#servicenerd
#flowdesigner
#flowapi
#scriptableflowrunner