Remove items from Dropdown - Recent Selections

gseale
Giga Contributor

Hello,

 

I'm an end-user and would like to know if there is a way to remove (clean) Recent Selections (see attached).

 

Thanks

 

Greg

1 ACCEPTED SOLUTION

Gangadhar Ravi
Giga Sage
Giga Sage

@gseale 

 

Hello - I am not 100% sure if you can clear it without admin access. But please try steps in below KB.

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0747334

 

Please mark my answer correct and helpful if this works for you.

View solution in original post

5 REPLIES 5

bammar
Kilo Sage
Kilo Sage

gseale
Giga Contributor

Thank you!!! I did try this solution, but I believe you need to be an Administrator to execute the sys_ui_recent_selection list.

 

gseale_0-1733869478636.png

 

Gangadhar Ravi
Giga Sage
Giga Sage

@gseale 

 

Hello - I am not 100% sure if you can clear it without admin access. But please try steps in below KB.

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0747334

 

Please mark my answer correct and helpful if this works for you.

Ankur Bawiskar
Tera Patron
Tera Patron

@gseale 

Do you want this to happen for 1 user or for all users?

the recent selections are stored in sys_ui_recent_selection table

You can use before insert BR on sys_ui_recent_selection table

Something like this

(function executeRule(current, previous /*null when async*/) {
    if (current.field_name == 'your_field_name' && current.user == 'specific_user_sys_id') {
        current.setAbortAction(true);
    }
})(current, previous);

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader