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
Giga Patron
Giga 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

4 REPLIES 4

Anand Kumar P
Giga Patron
Giga 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 🙂

Hemanth M1
Giga Sage
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

PrashantLearnIT
Giga Sage

Hi @Suggy 

 

it is available on my instance

Screenshot 2024-12-20 125914.png

 

how much old instances are you using?

********************************************************************************************************
Please appreciate the efforts of community contributors by marking the appropriate response as the correct answer and helpful. This may help other community users to follow the correct solution in the future.

********************************************************************************************************
Cheers,
Prashant Kumar
ServiceNow Technical Architect


Community Profile LinkedIn YouTube Medium TopMate
********************************************************************************************************