- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-11-2025 09:01 PM
i have an ui action button in my workspace when i click on that it is activating after some delay in the work space how can i remove that delay
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-11-2025 10:14 PM
the delay is because of this line, in this line you are calling subflow and using inForeground() so it will wait till the time subflow completes and then the next line will execute
I believe you want it to run in foreground because based on response you are doing something.
var flow_result = sn_fd.FlowAPI.getRunner().subflow('x_simet_cmdb.deactivate_sims').inForeground().withInputs(inputs).run();
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-11-2025 09:42 PM
did you check code of that if delay is added via some script?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-11-2025 09:54 PM
yes i used
to run in workspace i was facing this issue in my workspace only
is there any thing i can do with workspace client script to eliminate the delay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-11-2025 09:55 PM
Apart from that i didn't added any delay in the script
for your reference
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-11-2025 10:14 PM
the delay is because of this line, in this line you are calling subflow and using inForeground() so it will wait till the time subflow completes and then the next line will execute
I believe you want it to run in foreground because based on response you are doing something.
var flow_result = sn_fd.FlowAPI.getRunner().subflow('x_simet_cmdb.deactivate_sims').inForeground().withInputs(inputs).run();
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader