Refresh of the related list automatically

ozgurD
Tera Contributor

If I create a new entry in the CSM, in a case for a related list (in my case Product Details), I first have to click on the refresh button to see the new entry in the list (where all products for the case can be seen). If I create a task in a case, this task automatically appears in the list where all tasks are listed, is this also possible with the related lists (e.g. Product details) ?

 

Thanks for your help. 

4 REPLIES 4

Amitoj Wadhera
Kilo Sage

Hi @ozgurD ,

 

Please refer to the below article:

 

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

 

If you find my response helpful, please consider marking it as the 'Accepted Solution' and giving it a 'Helpful' rating. Your feedback not only supports the community but also encourages me to continue providing valuable assistance.

 

Thanks,

Amitoj Wadhera

This solution would be refresh the whole page right?

Nick43
Tera Contributor
Here you go!
 
function refresh(table) {
    for (var id in GlideLists2) {
        var list = GlideLists2[id];
        if (list.getTableName() == table) {
            list.setFilterAndRefresh('');
        }
    }
}

Nick43
Tera Contributor
Refresh from client side
 
function refresh(table) {
    for (var id in GlideLists2) {
        var list = GlideLists2[id];
        if (list.getTableName() == table) {
            list.setFilterAndRefresh('');
        }
    }
}