We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Mark incident as resolved with Rest API

knowram
Kilo Explorer

I am trying to mark an incident as resolved via the REST AIP I have tried using the REST API explorer to send a post with the following body   {"state":"6"} which didn't seem to have any impact on the incident.

11 REPLIES 11

gauravchoudhury
Tera Guru

Hi Jacob,



Try {"state":"7"}


vab_13
ServiceNow Employee

It will work with {"state":"7"}


Have a look:



find_real_file.png




find_real_file.png


find_real_file.png



find_real_file.png



find_real_file.png


For some reason using {"state":"7"} changes the state to "acknowledged". however I am actually not trying to changed that state would I would like to do is simulate clicking the "Resolve" button that is on the top of your screen shot.


vab_13
ServiceNow Employee

find_real_file.png



WROTE a BR to see if that gets triggered on RESOLUTION:


find_real_file.png



find_real_file.png





Its Time to TEST:



find_real_file.png



find_real_file.png





find_real_file.png



Incident:



find_real_file.png




And My TEST BR Fired:



find_real_file.png






Does this help?