ServiceNow – How to get a sys_id value of an incident
The REST call below would return every incident that’s been created:
https://devxxxx.service-now.com/api/now/table/incident
Details included in the response message will include sys_id along many other properties.
This however will return only one:
https://devxxx.service-now.com/api/now/table/incident?sysparm_limit=1
where sysparm_limit – The default is 10000
Get the latest updated incident:
https://devxxxx.service-now.com/api/now/table/incident?sysparm_limit=1 sysparm_query=ORDERBYDESCsys_updated_on
Specific incident:
https://devxxxx.service-now.com/api/now/table/incident?number=INC0010001