- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-17-2018 08:41 AM
HI
I would like to pull the list of change request from a date range using REST API explorer
can you please help me
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-17-2018 10:44 AM
For eg;
sys_created_onBETWEENjavascript:gs.dateGenerate('2018-12-17','00:00:00')@javascript:gs.dateGenerate('2018-12-18','23:59:59')
will give you all records created today and yesterday. This query is copied from the filter applied on a table and you could paste it on your API Explorer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-06-2024 10:34 PM
This solution is not working pls help me on this

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-17-2018 10:40 AM
1. Navigate to the Change Request List view and apply the filter as per your requirement and then copy the filter condition
https://docs.servicenow.com/bundle/london-platform-user-interface/page/use/using-lists/task/t_GenEncodQueryStringFilter.html
2. Now navigate to Rest API Explorer->Click on the Related link "Retrieve Records from Table (Get)-> Select the Table name as Change Request and in the sysparm_query pass the filter which is copied.
-Pradeep Sharma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-21-2018 07:41 AM
Hi Guys
Just wanted to also know if I use a python script to trigger this API
will the script recognise this variable (javascript:gs.dateGenerate) highlighted in the sysparm query