Create and then update RITM - REST API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2022 10:39 AM
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2022 12:25 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2022 12:36 PM
Thanks Mike. Will have a play around with that
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2022 10:44 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2022 12:00 PM
Thanks Saurav. Yes just using table API. Would you suggest doing this a different way?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2022 10:44 AM
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.