logo

NJP

Clear out the "Recent Selections" that appears up on the reference fields

New article articles in ServiceNow Community · Dec 11, 2024 · article

Did you know that you can clear out the "Recent Selections" that appears up on the reference fields?

On the reference qualifier fields, Recent selections are shown. If you wish not to show some of those recent selections on the list, please follow the below procedure from link.

How to clear out the "Recent Selections" that appears up on the reference fields.

If you wish this to happen for particular field and particular user then use before insert BR on sys_ui_recent_selection table and abort

(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);
View original source

https://www.servicenow.com/community/platform-analytics-articles/clear-out-the-quot-recent-selections-quot-that-appears-up-on-the/ta-p/3124761