
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2024 10:29 PM
Hi,
I want to add new option(Two years ago) to the filter,
I've added "answer.add('180_Two years ago@javascript:gs.monthsAgo(24)@javascript:gs.endOfThisMonth()', gs.getMessage('Two years ago'));" this in OOB BR-- Get Date Filter Options for Date Filters. but it isn't showing up.
Is there any other way to achieve this ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2024 01:55 AM
Hi @Community Alums
No, it's not possible to add. Please refer below post where ServiceNow support confirmed on the same:
You can create a relative filter and save it with visibility to everyone so that it could be reused.
Thanks & Regards
Amit Verma
Please mark this response as correct and helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2024 11:17 PM
Hi @Community Alums ,
Could you please provide additional information on your requirement like on which table on which field what you are trying to do ? along with that if you are using any script please share the screen shot aswell.
Please mark this comment as Correct Answer/Helpful if it helped you.
Regards,
Swathi Sarang

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2024 11:38 PM
Hi,
I want to filter records which were created/updated Two years ago, but i didn't see that option, so I've requirement to add Two years ago in the drop down list, I thought that it can be acheived using the above mentioned BR. But i didn't see the option after making configurations.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2024 02:58 AM
Hi @Community Alums ,
There is already OOTB option to query last 2 years could you please try that ?
Please mark this comment as Correct Answer/Helpful if it helped you.
Regards,
Swathi Sarang

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2024 09:50 PM
@swathisarang98 , @Amit Verma ,
There is difference between Two years ago and last 2 years.
Last 2 years-- 1/3/2024 to 1/1/2022.
Two years ago-- 1/3/2024 to 1/3/2022.