- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2023 04:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2023 05:33 AM
Hi @Abhishek Kathe,
Please find the filter that we need to apply to get the incidents created 10 days ago from now.
Query = sys_created_onRELATIVEGT@dayofweek@ago@10
Please Click helpful if you got the answer.
Kind Regards,
Prasanna

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2023 04:07 AM
Hi Abhishek,
Unsure of the use case. However, you can get all of details form the list view. Why is there a need for background script or any other script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2023 04:08 AM
trying un-explored scenarios.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2023 04:21 AM
Try something as below.
var getincibefore= new GlideRecord('incident');
getincibefore.addEncodedQuery('sys_created_onRELATIVELT@dayofweek@ahead@10');
getincibefore.query();
while(getincibefore.next())
{
gs.print(getincibefore.number);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2023 04:26 AM
can you please show your filter that you copied a query from ?