- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2022 11:54 PM
Hi,
I am very new to this SNOW.
I am looking for help in REST API solution where I can pass the Change Request Number and in the output response I can get the Change request values like "Type", "Configuration Item", "Short description", "description".
Something like - https://test.service-now.com/api/sn_chg_rest/change/standard/CHG1234567
some this kind of URL and in response the values of these fields from the CRQ - "Type", "Configuration Item", "Short description", "description".
Looking forward for some help.
Thanks
Solved! Go to Solution.
- Labels:
-
Integrations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-24-2022 01:23 AM
Hi
CI is also coming in correct format. This is how ServiceNow provides results for any reference field. If you are expecting Display value of CI, then make sysparm_display_value as true.
Then, your response would look like -
{
"result": {
"short_description": "testing else part",
"cmdb_ci": {
"link": "https://instance.service-now.com/api/now/table/cmdb_ci/f383a25ddb80d890bcb8dd3b5e96197a",
"display_value": "HelloCI"
},
"description": "Datachange Request"
}
}
Let me know if issue persists.
Mark this as Correct answer and close this thread for reference to other people seeking same info.
Regards,
Shubham

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-25-2022 12:51 AM
Hello you can take the SYSID from the available field from the REST API Explorer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-25-2022 01:28 AM
Hi
To fetch record using number, you can use this Table API - Retrieve records from a table
https://instance-name.service-now.com/api/now/table/{tableName}
>Pass Table Name in path parameter.
>In Query parameters -
sysparm_query - number=1234xxxx
sysparm_display_value - true (For CI label)
sysparm_fields - short_description,description,configuration_item
It will solve your issues.
If this answers and clarifies your doubts, feel free to mark this answer as correct. It will be positive reference for others looking for same kind of information.
Regards,
Shubham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-27-2022 02:09 AM
Thanks a lot for the responses!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-01-2024 04:57 AM
Hi,
I am very new to this SNOW.
I am looking for help in REST API solution where I can pass the Change Request Number and in the output response I can get the Change request values like "Type", "Configuration Item", "Short description", "description".
Something like - https://freedomtest.service-now.com/change_request.do?sys_id=f9b02e321b145e141253fc43cd4bcb91&syspar...?
sysparm_query=active=true
Looking forward for some help.
Thanks