The Zurich release has arrived! Interested in new features and functionalities? Click here for more

automate risk assessment against a Change instance via table API

Stephen Liu
Kilo Explorer

hi gurus,

not sure if am the first one asking this silly question, but due to the business requirement, we are looking to automate the  risk assessment against a Change instance via Table API? if possible, would you be so kind to share the steps in order to achieve this, please? much appreciated.

 

the automation i am looking to do is to,

1. create the risk assessment,

2. bind it to a change request,

3. have the assessment questions answered

4. calcuate the risk, and finally update the assessment state to complete

not sure if this could be done via the Table API at all, any recommendation? 

3 REPLIES 3

Stephen Liu
Kilo Explorer

the automation i am looking to do is to,

1. create the risk assessment,

2. bind it to a change request,

3. have the assessment questions answered

4. calcuate the risk, and finally update the assessment state to complete

not sure if this could be done via the Table API at all, any recommendation? 

Scott Halverso1
Mega Guru
Mega Guru

@Stephen Liu You'll have more luck getting responses in the ITSM forums, that Asset Management forum.  Table API is a now, it's like having read/write access to SQL database.

You'll want to check out the Change Management API.  As more and more dev ops teams want to programatically create, update, close change requests their might be support.  If not you can write our own scripted rest api to do the needful.  My experience with this has been in "standard" changes, meaning they are pre-approved because they have successfully done the change repeately before.  Standard changes don't typically require any sort of risk calculation, because the risk is pre-known.

https://docs.servicenow.com/bundle/rome-application-development/page/integrate/inbound-rest/concept/change-management-api.html#change-management-api

 

Reginald U_
Tera Contributor

Hello. I'm not sure if the OP ever found the answer but I'm writing this just in case it helps someone else. After a coworker made the suggestion, and after hours of searching for this answer, I finally realized that the "risk" field, at least in my Personal Developer Instance, could be changed via API without the need to complete the assessment. I never would have expected the this to be so simple. 😅