How to refresh a list with a UI Action?

Eric114
ServiceNow Employee
ServiceNow Employee

Hi,

I would like to create a UI action (button) on the sys_email.list to refresh the content. Instead of right-clicking on the banner contextual-menu and select Refresh.

Alternatively, it would be great to have it on all list view and not only on the sys_email table.

 

Maybe something similar to location.reload() but on a list view?

 

Thanks

1 ACCEPTED SOLUTION

Mike_R
Kilo Patron
Kilo Patron

You can create a simple UI action

Mike_R_0-1671483703848.png

 

 

Alternatively, clicking on the filter also reloads the list

 

Mike_R_2-1671483761052.png

 

View solution in original post

2 REPLIES 2

Mike_R
Kilo Patron
Kilo Patron

You can create a simple UI action

Mike_R_0-1671483703848.png

 

 

Alternatively, clicking on the filter also reloads the list

 

Mike_R_2-1671483761052.png

 

SanjivMeher
Kilo Patron
Kilo Patron

Can you try the solution posted here
https://www.servicenow.com/community/developer-forum/how-to-refresh-list-view-using-refresh-method/m...

 

function nowRefreshTheList() {

 

var w = top.gsft_main || top; //support for both having frame(navigator) and no frames

 

w.location.reload();

 

}


Please mark this response as correct or helpful if it assisted you with your question.