
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-08-2025 09:00 AM
Hi Community,
I need to apply a default filter on a related list which I managed to do (used the Set as default filter option from
Solved: How to set Default Filter on related list for all ... - ServiceNow Community ), however I have the requirement to "lock" this filter so it cannot be removed by users, but allow them to keep on building the filter if they want to.
I've tried various combinations from List Layout control such as omit filter or restrict the filter by roles, but in most cases I only manage to make the filter icon unavailable.
Is this possible at all?
Thank you.
Paula
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2025 05:51 AM
This will re-create the out of box filter:
current.addEncodedQuery('top_task=' + parent.sys_id);
so it looks like the full one would be:
current.addEncodedQuery('top_task=' + parent.sys_id + '^u_dependency_typeINinternal,external,3rd_party,other');
'parent' here refers to the pm_project table record.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2025 05:51 AM
This will re-create the out of box filter:
current.addEncodedQuery('top_task=' + parent.sys_id);
so it looks like the full one would be:
current.addEncodedQuery('top_task=' + parent.sys_id + '^u_dependency_typeINinternal,external,3rd_party,other');
'parent' here refers to the pm_project table record.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2025 06:17 AM
that worked!! thank you @Brad Bowman learned something new today 🙂
For anybody who might find this useful, this is the final version of the relationship record:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-09-2025 06:22 AM