Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

How to run FLOW in foreground?

Suggy
Giga Sage

Xanadu docs talks about running a flow in foreground as one of the option

Link - Record Triggers | ServiceNow Developer

Suggy_0-1734676017227.png

 

Docs link also talks about running flow in 'foreground'. 

https://www.servicenow.com/docs/bundle/xanadu-build-workflows/page/administer/flow-designer/task/set...

 

ServiceNow Knowledge article also talks about it - https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0819167

 

But I am not able to find that option in my instance. Any idea?

1 ACCEPTED SOLUTION

Anand Kumar P
Tera Patron

Hi @Suggy ,

 

Iam able to see the Run flow in foreground option

 

IMG_6808.jpeg

Option Description
Run flow in background (default) Flow that runs asynchronously in the background. Use this option for flows that do not require immediate updates and to allow other system processes to run at the same time.
Run flow in foreground Flow that runs synchronously in the current session. Use this option to provide immediate updates to an end user. For example, if a flow opens a task after the previous task closes, use this option to open the next task immediately after a user closes one.
Note: Running a flow in foreground may block the current session thread and prevent user input until the flow finishes. Avoid running flows in the foreground when they contain actions that cannot be interrupted, such as actions that run script. Actions or flow logic that pause a flow will not block a session.
 

View solution in original post

5 REPLIES 5

Anand Kumar P
Tera Patron

Hi @Suggy ,

 

Iam able to see the Run flow in foreground option

 

IMG_6808.jpeg

Option Description
Run flow in background (default) Flow that runs asynchronously in the background. Use this option for flows that do not require immediate updates and to allow other system processes to run at the same time.
Run flow in foreground Flow that runs synchronously in the current session. Use this option to provide immediate updates to an end user. For example, if a flow opens a task after the previous task closes, use this option to open the next task immediately after a user closes one.
Note: Running a flow in foreground may block the current session thread and prevent user input until the flow finishes. Avoid running flows in the foreground when they contain actions that cannot be interrupted, such as actions that run script. Actions or flow logic that pause a flow will not block a session.
 

Looks like some issue with my PDI, I checked in another instance and I see it there 🙂

Unable to find it in Australia version

 

Hemanth M1
Giga Sage

HI @Suggy ,

 

I just verified and i can see (am on Xanadu patch0)

HemanthM1_0-1734677557512.png

 

 

Accept and hit Helpful if it helps.

Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025