Updating incident by using correlation id instead of sys_id for a table api integration

kaushiki berter
Tera Expert

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.

1 REPLY 1

Ivan Betev
Mega Sage
Mega Sage

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