Updating incident by using correlation id instead of sys_id for a table api integration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-27-2024 03:38 AM
Hi, I wanted to update incident record through the correlation id not by using sys_id field.
In my project it is mandatory to use table api only and the problem is that the client application cannot get sys_id in response after their incident has been created in ServiceNow, they can only use correlation id field for any updates. Through ServiceNow rest api explorer I can only see sys_id as the mandatory parameter for the endpoint generation, how I can change this to correlation id?
Your help will be valuable for me.
Thank you in advance.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-27-2024 09:12 AM - edited ‎02-27-2024 09:12 AM
Hi @kaushiki berter ,
what is stored in the "correlation_id" in your app after the incident is created? Incident number?
If there is no way to capture "sys_id", then you will need to make a lookup call before modifying the record to get "sys_id".
Regards, Ivan