How export the dependency map in XML
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2023 12:47 AM
Hello everyone,
I have recently discovered the dependency maps, and I would like to export the views in xml with all the relationships. I suppose the dependency map looks at certain ServiceNow tables, and joins the information together, so I would like to be able to export that view in xml and choose additional fields to include.
Do you know a way I can do this?
Kind wishes,
Leo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2024 09:51 AM
I am looking for the same info... any leads?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2024 11:36 PM
Exporting the dependency views directly in XML format with all the relationships is not directly supported in ServiceNow. However, you can achieve this by exporting the individual tables involved and their relationships. Here are the steps:
1. Identify the Tables: The dependency views are built using the CMDB (Configuration Management Database) tables in ServiceNow. Identify the tables that are involved in your dependency view. This could be the cmdb_ci table and its child tables like cmdb_ci_server, cmdb_ci_application etc.
2. Export the Tables: Navigate to each of these tables in ServiceNow and use the 'Export' option to export the records in XML format. You can do this by opening the table list, clicking on the settings/gear icon, and choosing 'Export > XML'.
3. Include Additional Fields: While exporting, you can choose to include additional fields in the XML. This can be done by personalizing the list columns to include the additional fields before exporting.
4. Export Relationships: The relationships between the CI's (Configuration Items) are stored in the cmdb_rel_ci table. You can export this table as well to get the relationships in XML format.
5. Combine the XMLs: Once you have the XMLs for the individual tables and relationships, you can combine them as per your requirements. This would require some XML processing and manipulation which can be done using any XML processing tool or programming language.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-06-2024 01:48 AM
Exporting the dependency views directly in XML format with all the relationships is not directly supported in ServiceNow. However, you can achieve this by exporting the individual tables involved and their relationships. Here are the steps: 1. Identify the tables involved in the dependency map. These are usually the cmdb_ci table and its child tables, and the cmdb_rel_ci table which stores the relationships. 2. Export the tables individually. You can do this by navigating to the table list, for example, cmdb_ci.list or cmdb_rel_ci.list, and then using the 'Export' option in the context menu to export the table in XML format. 3. Include additional fields in the export. When exporting, you can choose the fields to include by configuring the list layout. Click on the gear icon in the list header, add or remove fields as needed, and then perform the export. 4. Combine the exported XML files. Since the export is done per table, you will need to manually combine the XML files to create a complete view of the dependency map. 5. For visualizing the relationships in the exported data, you might need a tool that can import and display data in a graph format, such as a network diagram tool. Remember that the exported data will be a snapshot at the time of export and won't reflect any changes made in ServiceNow after the export.