Refreshing the incident page

Lion Kesler
Tera Contributor

Hello
The system does not perform an automatic refresh
Do you have an automation that refreshes every minute?

10 REPLIES 10

SumanthDosapati
Mega Sage
Mega Sage

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.

image

 

Regards,

Sumanth

Abhijit4
Mega Sage

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

By marking my response as correct or helpful, you contribute to helping future readers with similar issues.
Regards,
Abhijit
ServiceNow MVP

Meidan Diamond
Kilo Explorer

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

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

Can you give me a brief example? I've tried that, wasn't able to get it to work.