[Service Mapping] Tie CI and application services together automatically

Makoto Uchiyam1
Tera Contributor

Hi, I am new to ITOM Discovery.

I want to tie CI and application services together automatically.

I confirmed that it is possible to set CI releation with "manual" method mannually from [Configuration] -> [Application Services].

But I want to automate this tying, for example by Import Set.

I understand that this connection is defined in "cmdb_rel_ci" as a record. So, I made a record in "cmdb_rel_ci" manually, however, a new relationship is not displayed in Application map.

Please show me how to realize what I want to do.

(I want to make such relationships for specific CIs automatically.)
find_real_file.png

1 ACCEPTED SOLUTION

Ian Ma
Tera Expert

You can use BusinessServiceManager API with in a transform script to achieve this. 

https://developer.servicenow.com/dev.do#!/reference/api/rome/server_legacy/BusinessServiceManagerAPI

View solution in original post

3 REPLIES 3

Rahul Priyadars
Giga Sage
Giga Sage

Can u make application service - Operational. It should show,

refer this URL for details on same

https://docs.servicenow.com/bundle/quebec-servicenow-platform/page/product/service-mapping/task/manually-add-ci-to-business-service.html

Regards

RP

Thanks for your reply.

I want to automate this operatiton in workflow.

We can't repeat this operation for the number of CIs.

Input)

* Application Service (empty)

* Configuration Items

Desired Output)

* Application Service(manually connected to each Configuration Item)

 

Regards,

Ian Ma
Tera Expert

You can use BusinessServiceManager API with in a transform script to achieve this. 

https://developer.servicenow.com/dev.do#!/reference/api/rome/server_legacy/BusinessServiceManagerAPI