Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Retrieve Flow Status with ExecutionID via REST API

benjaminmetzler
Tera Expert

Hi All,

Is there a way to get a flow status and results with a REST API call using the ExecutionID?

 

I see that the sys_flow_context has the flow executions along with the status, but I don't see the results in that table. I can get by with just the status (for now) but I'd like to be able to get the flow results so I can parse out some additional information

 

My use-case is that I have a flow with a REST API - Async trigger. I want to call that flow, then check the status and get the related REQ/RITM.

 

Thanks,

Ben

3 REPLIES 3

Namrata Ghorpad
Mega Sage

benjaminmetzler
Tera Expert

Thanks @Namrata Ghorpad ,

That page was my starting point. I see I can get the status in the SNOW interface. What I want to do is be able to call a to get the status of the 'REST API - Async' call externally so that the calling service can find out if the flow was a success or not.

 

Ben

quentincarton
ServiceNow Employee
ServiceNow Employee

I have achieved this by creating a Graphql resolver on the instance 

 

quentincarton_0-1699028047783.png

With an Scripted Resolver

 

quentincarton_1-1699028088922.png

quentincarton_2-1699028114386.png

And now I can get status of my flow from api, I could modify the script to get outputs etc

 

quentincarton_3-1699028154902.png

 

press that thumbs-up button if this is helpful. 

 

PS: I'm still looking for a more native way of doing this.