How to export the CI and CI related applications to a CSV
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2023 09:04 AM
Hello,
I am working on a project where I need to extract Configuration Item (CI) dependencies (both first and second-degree) from ServiceNow using the API. I am particularly interested in cmdb_ci_appl and cmdb_ci_service CI types.
Is there a straightforward method or endpoint that would allow me to retrieve this hierarchical relationship data?
I'm looking to represent the CI dependency relationships similar to how it appears in the ServiceNow dependency map, but in a tabular format.
If this isn't possible, how do I export the applications that a server is related to? (such as Server01 --> EMAIL APP)
Any guidance or best practices for achieving this would be greatly appreciated!
Thank you!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2023 10:37 AM
With CMDB Instance API you get CI data along with their inboud/outbound relationships.
https://developer.servicenow.com/dev.do#!/reference/api/utah/rest/cmdb-instance-api
Regards,
Vivek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2023 11:56 AM
How would I go about using that?
Any good tips or things to look out for?