Risk Assessment AP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2023 08:05 PM
Hi,
On Servicenow when I create a Change Request ticket type this has an option to add Risk Assessment data in UI. What is the Restful API?
Does someone know what API should I use? or How can I get this API from Service Now?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2023 03:24 AM
Hi @elenar016
Do you want to send this data to other systems? The risk assessment data captured / stored in Assessment table. Do you want to send all details or only risk value.
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
01-06-2025 11:51 AM
The Change Management (change request) documentation can be found here-
Best,
Jay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2025 02:23 AM
This may be of some help.
The Risk Assessment data for a Change Request can be accessed via the REST API using the Table API. You can use the Change Request API (change_request table) and the Risk Assessment API (asmt_assessment_instance table) to retrieve or update risk assessment data.
- ServiceNow REST API for Risk Assessment in Change Requests
- Retrieve Risk Assessment for a Change Request
To get the risk assessment data for a specific change request, you can query the assessment instance linked to the change request.
API Endpoint:
- This API retrieves assessment instances related to change requests.
- You can modify the query to filter for specific change records.
Example cURL Request:
curl -X GET "https://your-instance.service-now.com/api/now/table/asmt_assessment_instance?sysparm_query=source=ch..." \
--header "Accept: application/json" \
--header "Authorization: Basic YOUR_CREDENTIALS"
- Get Risk Assessment from the Change Request Table
You can also directly query the change_request table and retrieve the risk level field.
API Endpoint:
- This retrieves all change requests with risk level and impact values.
Example cURL Request:
curl -X GET "https://your-instance.service-now.com/api/now/table/change_request?sysparm_fields=sys_id,number,risk..." \
--header "Accept: application/json" \
--header "Authorization: Basic YOUR_CREDENTIALS"
- How to Find the API in ServiceNow?
If you want to discover available APIs in your ServiceNow instance:
- Navigate to REST API Explorer
- In ServiceNow, go to System Web Services > REST API Explorer.
- Select Table API and choose the change_request or asmt_assessment_instance table.
- Experiment with API calls and test responses.
- Use API Documentation
- Go to System Web Services > REST API Explorer > API Documentation.
- Look for Table API or Assessment API to find specific endpoints.
- Create a Risk Assessment via API
To create a new risk assessment for a change request, send a POST request to the assessment instance table.
API Endpoint:
POST https://your-instance.service-now.com/api/now/table/asmt_assessment_instance
Example JSON Body:
{
"source": "change_request",
"source_id": "CHANGE_REQUEST_SYS_ID",
"state": "in_progress",
"due_date": "2025-03-01 12:00:00"
}
Summary:
- Use the asmt_assessment_instance table to fetch risk assessment data.
- Use the change_request table to get the risk level.
- Use REST API Explorer in ServiceNow to test and find the right API.