Automatic relationship creation

snowlover1
Kilo Contributor

I have created a relationship between   parent class and child class in Suggested relation ship table. Based on this, when i import   parent CI

and child CI to cmdb_ci tables   ,   relation ships(in cmdb_rel_ci)   will be created automatically? or do we need to create manually?  

Thanks

Mike

8 REPLIES 8

Mike Allen
Mega Sage

You would have to create them manually.   The relationships are between specific CIs.


Thanks for your quick response. Then , what is the usage of   suggested relationships. i thought based on this SNOW will create relationships between CIs.



Thanks


Mike


When you are in a CI and you want to add a relationship:


Capture.PNG


This makes the relationship show as something your can choose:


Capture.PNG


She Sull
Giga Guru

I'm currently working on a similar solution, automating relationships on the cmdb_rel_ci table. The following post provides a great example of how this can be done. I was able to modify to my needs and it works great when manually creating CIs. The problem I've run into is getting this to work on an import using a transform map. This may help you though:


https://community.servicenow.com/groups/servicenow-user-group-us-ny-nyc/blog/2014/07/15/generating-c...



Thanks,


Sherry