REST API : Is there a way to get incident details by case number
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-15-2015 09:51 AM
Is there a way to get incident details by case number using REST API?
I only see once can provide incident/{sys_id}, I was wondering if there is any thing like incident/{case-number} instead. Also, one can see that GET incident?number=xxx is present, however it returns the list of incident in the result set.
Appreciate if some one can guide to get the incident details by case number. Also, what is the key difference between sys_id vs case-number are they both unique?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-15-2015 12:13 PM
/api/now/v1/table/incident?sysparm_query=number=
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-15-2015 12:14 PM
Also, sys_id is the only true unique field in the system. Numbers can be duplicated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2019 11:53 AM
Someone at ServiceNow really needs to update the docs with this incredibly basic/essential query.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-15-2021 06:31 AM
Hi Mike,
Hope you are doing Good.
We can read incident by Incident number like given below but can we get incident details based on Mobile number. If yes could you please share API details.
service-now.com/api/now/table/incident?sysparm_query=number=INC0000002&sysparm_limit=1