CI Class automation

Alex153
Tera Contributor

Hi guys,

Is it possible to automate CI Class creation? For example I want to create 20 CI Classes and have different attributes in each class. Maybe via XML file? Or is there another way?

1 ACCEPTED SOLUTION

shloke04
Kilo Patron

Hi @Alex 

Why do you want to go that path of doing something which I believe will be risky and tricky both?

I understand the intent can be here to save time as you need to create 20 classes, but from my personal experience in project I would strongly suggest to create it manually and loading of data you can automate the way you want.

Just to be aware based on what attributes your classes are supposed to have may be you can create a Parent class and then keep on extending the child classes when you create from that particular Parent class.

This will save time and you do not have to create field manually and creation of Table(class) will not take more than few minutes.

For example: Look at the parent class as Hardware and computer being Child . So similarly you can create your child classes and extend from a parent class.

find_real_file.png

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

View solution in original post

17 REPLIES 17

Potentially but I have never done that myself.

Alex153
Tera Contributor

Hi,

I tried to use transform mapping. Import was successful but I got this

No data in a record. And the name wasn't changed. Are there any details to import Ci Classes from excel file? (I import data to sys_db_object table)

Jake Sadler
Kilo Sage

Hi Alex,

 

I saw you replied saying the import didn't work. Do you still need help with this?

 

If my answer was correct, please can you mark it as correct so others can find this solution.

 

Thanks

 

Jake

Hi Jake,

Yes, I posted one question but somehow it started working 🙂 I created CI Classes using import from excel file. But met another problem 🙂 Do you know why additional fields didn't create? I mentioned them in excel file

find_real_file.png

Hi,

 

If you have mapped these excel fields to existing fields then the values will have been updated however they may not be available to view in the form try looking at the XML of the record.

 

If the values you're looking have not updated then there may be an issue with the type of variable you have mapped the field to. For example a string that contains letters to a number field.

 

Thanks

 

Jake