PATCH API TO UPADTE RITM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2023 03:35 AM
Hi
we need to share an ServiceNow API to the customer where they can update the requested item state to resolve i am using below API but its not working can any one help me on this it is showing 200 ok in post man but in result I am getting state=1 which is open state sharing screen shots below
PATCH API
JSON
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2023 03:55 AM
are you sure on RITM table the state field has choice value as 6 for Resolved?
Is the state field on RITM having Resolved state itself or not?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2023 04:19 AM - edited 07-05-2023 04:21 AM
RITM is on open state
state = 6 for resolved
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2023 04:25 AM
Are you sure that one of those choices is for the sc_req_item table?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2023 03:58 AM - edited 07-05-2023 04:00 AM
Checked my PDI, are you sure that there is a state "6"? I only have 1, 2, 3, 4, 5, 7.