- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2015 03:33 AM
How can I get the list of Incidents created by particular user using REST API in ServiceNow?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2015 05:07 AM
Hello,
Bellow the service to call:
https://<your instance>.service-now.com/api/now/v1/table/incident?sysparm_query=caller_id=<id of caller>
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2015 03:53 AM
Well you can pass that in the GET method you use, like this:-
sysparm_query=caller_id=javascript:gs.getUserID()
You can refer this wiki link if you are still not clear.
http://wiki.servicenow.com/index.php?title=Table_API#GET_.2Fapi.2Fnow.2Fv1.2Ftable.2F.28tableName.29
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2015 04:01 AM
Thanks. Do you have any working example?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-05-2015 05:07 AM
Hello,
Bellow the service to call:
https://<your instance>.service-now.com/api/now/v1/table/incident?sysparm_query=caller_id=<id of caller>
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-22-2015 10:01 PM
I am able to fetch around 501 Incidents in one request. I have following queries -
- How to fetch the latest Incidents? (sorted by time)
- How to fetch the next set of Incidents? Its required for pagination.