Accessing flow operations output via script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2025 04:10 AM
Hi experts
I'm trying to access the output of a flow, subflow, or action using scripting. I know that the sys_flow_context table stores information about the execution, but it doesn't contain the actual output data visible in the Workflow Studio Operations section. There we have the action section and in it the Output data.
Anybody knows the name of the ServiceNow table where the real output of a flow, subflow, or action is stored? Is there any possibility to get this information via script?
Basically we execute the flow/subflow/action in background from a business rule and later, in another script we want to get the output.
Thank you!
Dominik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
What's the purpose of running the BR and then having it wait? Wouldn't it be better to have the flow that you require the output from call a flow as the last step and then have the called flow perform the functions that are currently being done by the BR. This way you could simply pass the outputs from the first flow to the second flow and not have processes in a waiting state?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
It would be better, but in my case it was generic. The use case can happen for any flow and not just for a dedicated one.
Anyway, I found a solution. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
@Dominik9 I am also in a similar situation. Are you able to find a solution ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @VS M
Yes, you can use the getOutputs Method: https://www.servicenow.com/docs/bundle/vancouver-api-reference/page/app-store/dev_portal/API_referen...
Hope this helps.