- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-02-2016 03:27 PM
Hi ,
I am trying to force a process to run in the background after clicking a UI action/button on a form, currently the process locks out the screen and this takes time before moving onto the next item
is there a way to do this!?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-03-2016 11:50 AM
Yup it would definitely stop the screen from locking out. Instead you would have a very lightweight AJAX call running in the background checking status while the actual work is done on a worker node, so it will also not take up any user semaphores.
Please do let me know if you get this working!
-Jon
Sent from my iPhone

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-02-2016 04:16 PM
Hi Mohamed,
The first thing that comes to mind is for you to write a script action and trigger it from the UI action via an event.
Script Actions - ServiceNow Wiki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-02-2016 08:02 PM
Thanks ...ill give it a shot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-02-2016 04:20 PM
To do this, you need a client UI action (simply check the "Client" box and use client side script). Depending on what you are trying to do you could use it to do form manipulation or asynchronous GlideAjax for server side actions.
Edit: I think Chuck answers to your question better thant me as I'm not sure of the impact of leaving the form before receiving the async GlideAjax callback.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-02-2016 08:02 PM
Thanks Laurent!