- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi Team,
We are facing an issue while resolving Incidents through the ServiceNow Table API.
When updating an Incident to the Resolved state via a REST API PUT request,
we receive the following error:
Observations:
- The Cause Code field is being passed in the API payload.
- The Incident can be resolved successfully from the UI.
- The issue occu
- rs only when resolving through the REST API.
- A Data Policy is enforcing Cause Code as mandatory.
how to fix it
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Validate that the cause code you are sending is correct. From the looks of it, it's a custom field, so not sure if it's a string or a choice field. If it's a choice field, make sure it's the correct VALUE of the choice (not the LABEL).
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
57m ago - last edited 53m ago
the OOTB data policy checks 2 fields during INC Resolution i.e. close_code and close_notes
are you setting correct choice values for close_code in your payload?
below are the choice values
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
57m ago - last edited 53m ago
the OOTB data policy checks 2 fields during INC Resolution i.e. close_code and close_notes
are you setting correct choice values for close_code in your payload?
below are the choice values
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
