
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2022 04:40 AM
Is there a way to see all the CIs and their relations in a Service Map, just like they are displayed in cmdb_rel_ci table?
Service Mapping is using its own table svc_ci_assoc, but CIs in that view is just a list of CIs that's referring to the Mapped Application Service.
Basically, where can I find the data that draws this picture? CIs and their relations..
Solved! Go to Solution.
- Labels:
-
Service Mapping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2022 08:04 AM
Hi,
The logic of the service visualization is not exposed 😞
(and it complex anyway)
However if u want to export the service to another instance we can help
We have it fully implemented for discovered service :
https://docs.servicenow.com/bundle/rome-it-operations-management/page/product/service-mapping/concept/transfer-service-definitions.html
For other kind of services we do not have this functionality
(in our roadmap and it will help if u can submit an enhancement request :-))
i can help with the following - try to run the below
gs.print(SNC.ServiceMappingFactory.exportService(SERVICE_ID));
This will give a list fo ci and how they should be related.
do not try to create relation by yourself - it is far more complicated and error prune
instead - use a script include called "CreateOrUpdateITService" method called addCI :
//addCI : function(bsID, sourceCiId , targetCIId)
where you state service id , source ci in the service (or empty string if entry point) and target ci to be added or re-wire
a bit of work - but this is the general way to export other services
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2022 07:07 AM
- Applicative Flow From/To
- Implements Endpoint From/To
The Service Map also has dependencies on specific CI classes called Endpoints. There are different subclasses of the Endpoints table, including HTTP Endpoint and Manual Endpoint, which are used extensively, but you won't see these CIs in your map or in your dependency view as CIs. And none of the special relationship types are displayed in the dependency view either. Therein lies at least some of the "voodoo". You will not see these CIs or Relationships but they are what is used to determine the content of your Service Map.
Please mark this as helpful if this helped you, and correct answer if this answered your question.
The opinions expressed here are the opinions of the author, and are not endorsed by ServiceNow or any other employer, company, or entity.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2022 08:04 AM
Hi,
The logic of the service visualization is not exposed 😞
(and it complex anyway)
However if u want to export the service to another instance we can help
We have it fully implemented for discovered service :
https://docs.servicenow.com/bundle/rome-it-operations-management/page/product/service-mapping/concept/transfer-service-definitions.html
For other kind of services we do not have this functionality
(in our roadmap and it will help if u can submit an enhancement request :-))
i can help with the following - try to run the below
gs.print(SNC.ServiceMappingFactory.exportService(SERVICE_ID));
This will give a list fo ci and how they should be related.
do not try to create relation by yourself - it is far more complicated and error prune
instead - use a script include called "CreateOrUpdateITService" method called addCI :
//addCI : function(bsID, sourceCiId , targetCIId)
where you state service id , source ci in the service (or empty string if entry point) and target ci to be added or re-wire
a bit of work - but this is the general way to export other services

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2022 12:58 AM
gs.print(SNC.ServiceMappingFactory.exportService('SERVICE_ID'));
I'd say that's as good as it gets I guess.
Thansk for the help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2024 10:30 PM
Hi rotem1,
I know its a bit long time ago, but I do have question to your post. You mentioned the script include "CreateOrUpdateITService" and its function addCI in the post. I have tried it out and worked perfect. But the problem is that when I click the "Recalculate Service" link, all the added CIs were removed. So my question is that how can I retain the manuall added CIs in the map?
BTW, I am working with the Tag-based service mapping.
Thanks,
Scott