- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2017 02:38 AM
Hello,
I'm trying to perform a search on Incident on a "resolved_at" field via REST API.
I understand how to query for specific parameters, such as:
/api/now/v1/table/incident?sysparm_query=resolved_at=ONLast15minutes
Unfortunately this code not works.
Does anyone have an idea on how to query for "resolved_at" field (with "ON Last 15 minutes" condition) on records via the REST API?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2017 03:22 AM
Hi Ema,
Your query should be
'/api/now/v1/table/incident?sysparm_query=resolved_atONLast 15 minutes@javascript:gs.minutesAgoStart(15)@javascript:gs.minutesAgoEnd(0).
Hope this helps you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2017 05:38 AM
If your question is answered , please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2017 05:38 AM
Hi Emo,
Can you mark my answer as correct and helpful if you were able to achieve your requirement. This helps in removing the question from unanswered list.
Thanks in advance.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
