CI Relationship creation through transform map or Automatically

mdeepu433
Tera Contributor

Hi Team,

 

I have 2 ci classes, instead of creation manual entries in cmdb_rel_ci table. i just wanted to build the relation ship automatically while inserting the records.

for example: let us say

parent: parent class

few records are there in this class

child: child class

only two records are there in this class

i am inserting the records in parent, after insertion the relationship needs to be create automatically. there is common value for parent and child is ip address. if it is matched then attach this parent to the respective child.

parent Runs on::Runs Child like this.

i have the below script but i failed in usagfind_real_file.png

please give the information if you have anyyyy......

 

Thanks

 

 

5 REPLIES 5

HI Anvesha,

 

I have similar kind of requirement in below

Once create  business application using transform map, relationship created automatically.

parent: business application

child: application service

type: Consumes:: Consumed by

 

could you please provide the code to achieve it