Does iTop have the ability to import multiple classes? For example when i try to import a new customer contract, where the organization is yet to exist, it returns with an error. Thereafter i have to create the organization first before importing the contract information.
Would be great if the 'one' import can define multiple classes and their relationships.
Question is, can this be done?
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This cannot be done using CSV files, since the CSV format is tabular per nature. So having different kind of objects in one single CSV file makes no sense.
However this can be done using XML files, and it's exactly what iTop is doing when it loads the sample data. You can perfectly mix different classes of objects inside one XML file. What is lacking is a clean page/webservice exposing the XML import to the world, but this can be done quite easily. Look at the class XMLDataLoader defined in the /setup directory, all the processing is encapsulated here.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Any possibilities that a webservice to accomplish the above be implemented within iTop. Also how would i go about parsing XML files with the current model?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ive created a separate webservice (in php/html) which imports CSV data into the database, but the only issue is that i dont have the iTOP theme i.e. navigation panel and search etc...
How can this be integrated?
The CSV data is collated in a single header
Kind Regards
Kind Regards
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi All,
Does iTop have the ability to import multiple classes? For example when i try to import a new customer contract, where the organization is yet to exist, it returns with an error. Thereafter i have to create the organization first before importing the contract information.
Would be great if the 'one' import can define multiple classes and their relationships.
Question is, can this be done?
Thanks
This cannot be done using CSV files, since the CSV format is tabular per nature. So having different kind of objects in one single CSV file makes no sense.
However this can be done using XML files, and it's exactly what iTop is doing when it loads the sample data. You can perfectly mix different classes of objects inside one XML file. What is lacking is a clean page/webservice exposing the XML import to the world, but this can be done quite easily. Look at the class XMLDataLoader defined in the /setup directory, all the processing is encapsulated here.
Is it maybe also a good way to import tickets from iTop 1.3? XML works much better with linebreaks.
Thank you Denis,
Any possibilities that a webservice to accomplish the above be implemented within iTop. Also how would i go about parsing XML files with the current model?
Hi,
Ive created a separate webservice (in php/html) which imports CSV data into the database, but the only issue is that i dont have the iTOP theme i.e. navigation panel and search etc...
How can this be integrated?
The CSV data is collated in a single header
Kind Regards
Kind Regards