How to implement relationship between cis in cmdb_rel_ci
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2024 03:07 AM
Hi Team,
Anyone please suggest how to import records in cmdb_rel_ci table
i have data like connects to, is served by in excel
Thanks & Regards,
ramu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2024 03:11 AM
Hi @vamshi2
It's 3 step
1. Bring the source CI in CMDB ( Parent)
2. Bring the target CI in CMDB (Child)
3 Then get the relationship in cmdb_rel_ci and create a transform map and run the map. Make sure the parent and child CI name must match with cmdb data.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2024 06:26 AM
Thank you so much for quick reply
i try to import the data (for example new ci type as "requires" ,"is authorized by",..) using transform map in cmdb_rel_ci table i am facing below error as the ci type is not available in "cmdb_rel_type"
"Operation against file 'cmdb_rel_ci' was aborted by Business Rule 'Prevent Recursion in CI Relationships^50fa16a3475dd290535ad38a516d43c3'. Business Rule Stack:Prevent Recursion in CI Relationships"
could you please advice
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2024 06:45 AM
Hi @vamshi2
Try to create this relationship manually and see did you get errro?
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0813377
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2024 09:30 PM
Thank you for quick reply
i have tried creating manually and the record is not creating
it is creating when we provide both parent description and child description of cmdb_rel_type but as of now transform map is on cmdb_rel_ci table which i am creating relationship if in data is not present in servicenow by using choice action create