Transform script to load relationship between same parent and child name with different classes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2023 04:06 AM - edited 12-18-2023 04:09 AM
Once create business application using transform map, in relationship how we can import parent child relationship with same name for both parent and child with different classes
Parent :ABC
parent class: business application
Child: ABC
child class: application service
type: Consumes:: Consumed by
can anyone please provide the code to achieve it?
Parent class should be Business Application.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2023 04:13 AM
Hi @Jyoti88
To do this You need 3 transform map
1. To get the Business Application
2. To get the Application Service
3. To get the relationship
for 3rd one, download the excel template from cmdb_rel_ci table
ask user to update the data
Load data via import set table
Create Transform map
Run.
Process is same but make sure the both Services must exits in CSDM.
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
12-18-2023 06:06 AM
Hello @Dr Atul G- LNG ,
We already load business applications and application services , now we have to load relationship between both, but classes are chosen incorrectly , because of duplicate names, but there classes are different.
We want classes should be selected properly for both parent and child.
Regrds,
Jyoti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2023 08:30 AM
Hi @Jyoti88
Where these classes picked up wrongly?
(but classes are chosen incorrectly , because of duplicate names, but there classes are different.)
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
12-18-2023 06:38 AM
Hi @Jyoti88, You need to have the OnComplete transform script. Can you try the below script?
Regards,
Sunil