Refreshing the incident page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2022 06:04 AM
Hello
The system does not perform an automatic refresh
Do you have an automation that refreshes every minute?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2022 06:25 AM
In the database it is updated instantly in Real time.
On form also you will see Real time updates for a field if a value changes with a symbol at the field.
Regards,
Sumanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2022 06:26 AM
Hi
It would be great if you could share more insight about the requirement details as it is not possible to refresh page automatically in ServiceNow.
Even without refreshing page, ServiceNow shows changes made on fields available on form so not sure why you still need this functionality.
Let me know if you have any further queries.
Please mark this as Correct or Helpful if it helps.
Thanks and Regards,
Abhijit
Community Rising Star 2022
Regards,
Abhijit
ServiceNow MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2022 11:13 AM
Hey guys,
I'm trying to create a script that'll make a UI button to refresh the 'incidents' page automatically.
I found a lot of explanations on the web, but I can't figure a way to stop the refresh.
I've found this:
Name: Refresh List Show
Insert: true
Show Update: true
Client: true
List banner button: true
List context menu: true
onClick: refreshCustomer();
/*Refresh Customer Incident List manually) */
function refreshCustomer() {
GlideList2.get("u_customer_incident").refresh();
}
setTimeout(function() {refreshCustomer(); }, 180000);
And it works, but if i want to set the refresh to 30s - I can't stop it.
Is there a way to make it so that when I click again, the script will stop? Maybe another button to stop it?
Or even do a page refresh that'll stop it? because it never does, and I have to disable/change the entire script so it'll work.
thanks in advance

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-15-2022 12:37 AM
Add one hidden true/false field as flag.
For each click change the value from true to false or vice versa.
If true run your script and if false do not run the script or setTimeout.
Regards,
Sumanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-20-2022 07:23 AM
Can you give me a brief example? I've tried that, wasn't able to get it to work.