Create and then update RITM - REST API

User485076
Tera Contributor

Hi,

 

I’m guessing this is going to be really simple but I’m struggling to work out how a record will be updated once created.

A third party tool needs to create RITM’s in ServiceNow. I’ve sent them the endpoint and the fields required. However, they will need to update said record at a later date. Do I need to send back the sys_id of the record as a response, if so how? Can this be done using just the RITM number? 
Any help would be great. Thanks! 

9 REPLIES 9

You should use the ServiceNow Catalog API instead. A good example is here

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0784476

 

 

Please mark as helpful is this helped.

Thanks Mike. Will have a play around with that 

Saurav11
Kilo Patron
Kilo Patron

Hello,

 

Yes you can use number as a unique field to get the RITM updated? 

 

Once the record is created you just need to use PUT table API to update the fields which you want on RITM assuming your are using table API.

 

Incase if there is another type of API in use le me know.

Thanks Saurav. Yes just using table API. Would you suggest doing this a different way? 

Mike_R
Kilo Patron
Kilo Patron

On the sc_req_item table there are fields called Correlation ID and Correlation Display. Have them populate those fields with whatever reference number would be good for them (such as the system ID of the record in the third party tool) and then they can leverage those fields to do a lookup and update at a later date.