How to trigger the flow designer from business rule

Dee S
Giga Guru

How to trigger the flow designer from business rule and provide inputs to flow designer and map back the output to a request back via business rule?

 

1 REPLY 1

Tom Sienkiewicz
Mega Sage

Hi, have a look at the new ScriptableFlowRunner API. This is what you should be using currently to start flow/subflow/action from a server script.

Basically you instantiate the Runner object with any parameters you need and then you can access the Result object to see response attributes. You will be most interested in the Outputs.

See an example here:

https://developer.servicenow.com/dev.do#!/reference/api/rome/server/sn_fd-namespace/ScriptableFlowRu...