REST API : Is there a way to get incident details by case number

rush1
Kilo Contributor

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?

5 REPLIES 5

Jeya
Tera Contributor

This is very helpful, Along with these details, is there a way to get assignment_group.email ?

 

https://xxxx.service-now.com/api/now/v1/table/incident?sysparm_query=number={INC123454}&sysparm_fields=caller_id.email%2Cassigned_to.email%2Cassignment_group.email

 

The below query works but assignment group is empty