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 10:42 AM
What API/endpoint are they using to create the RITM? Catalog API, direct POST to RITM table, custom scripted REST message?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2022 11:59 AM
They are just using a direct POST to the RITM table for now. I built out the JSON in rest api explorer with the fields they need and then provided them with the url and code. Is there a better way to do this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2022 12:17 PM
Assuming you don't need an REQ or Catalog tasks created then a direct POST to RITM Table is fine.
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 POST an update at a time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2022 12:21 PM
Thanks for your help here Mike. I actually do need a REQ creating. Does that change how I should do this? I just realised a REQ won’t be created off the back of the RITM