Cannot update problem state from Assess to Closed via API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2024 02:52 AM
Hello everyone,
I'm currently having troubles with problem management. I'm using the Table API to update problems. While I didn't have any issue to change the state from New to Assess, I am now stuck trying to move it from the Assess state.
I tried PUT/PATCH methods
PUT https://INSTANCE/api/now/table/problem/PROBLEMID
{
"state": "107",
"resolution_code": "canceled",
"close_notes": "My close notes",
"closed_by": "admin"
}
but it still stays at state "102" (Assess). In the UI, I can change the state from Assess to Closed without any issue. I inspected the calls and it calls the xmlhttp.do endpoint with the same params as before (without closed_by).
Do you know what I am doing wrong ?
Thanks in advance !
Clément
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2024 12:26 PM
Not sure @ClémentN Might be log a now support case and try. is all parameters having right name? and API response you are getting?
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2024 05:09 AM
Yes, parameters names seem correct from what I know. I get a 200 status, fields are just not updated. I will probably contact the support as this could be a bug. Thanks again for your time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2024 05:50 AM
Yes , look lie it is bug now. Please updates in thread.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************