How to refresh related list from business rule

ritaaudi
Tera Contributor

Hi: I am trying to refresh a related list from a business rule. (the related list is release_task table.) I tried:

GlideList2.get('release_task').refresh();

g_list.refresh(1);

top.gsft_main.location.reload();

None of which are working. Any advice?

Thank you!

2 REPLIES 2

sachin_namjoshi
Kilo Patron
Kilo Patron

You can refresh related list with onsubmit client script.



Please check below for solution



https://www.servicenowguru.com/scripting/client-scripts-scripting/reload-form-related-list-client-sc...



Regards,


Sachin


Hi Sachin:


Thanks for the info. I needed the refresh to work on list update. The onsubmit client script did not work. So I did on celledit. Here is my list control:


find_real_file.png


and here's the client script I created:


find_real_file.png




When I go to the related list and update the percent complete, a business rule runs to update status to complete. With the refresh client script above the refresh happens about half the time. I can't figure out why. Any ideas?


find_real_file.png