pluginsGLPI / datainjection

Plugin to import CSV files into GLPI
http://plugins.glpi-project.org/#/plugin/datainjection
GNU General Public License v2.0
52 stars 51 forks source link

recursive injection impossible over entities #397

Open nsi-test opened 5 months ago

nsi-test commented 5 months ago

I made a model in the root entity concerning updating inventory/asset numbers of monitors, as serial number being the defining field. The monitors I need to update are in various sub-entities of root. (allow line creation -> no, allow lines update -> yes, allow update of existing fields -> yes, entity -> root, sub-entities -> yes). The csv file is one for all. I would like to do it for all of them at once, but it is not possible. I have to go change the current entity for every group every time to execute the model successfully. This is very tedious. As far as I can see the recursive execution in that case is not possible. Why is that? GLPI 10.0.14, Data injection 2.13.5.

erique-souza commented 4 months ago

I have the same problem, in my case they are computers trying to use the serial number as a comparison, but the same as described, the equipment is in several different entities and when I try to import it only imports/checks for the root entity and ignores the other entities

I was even able to select the entity I want to import and the import works like this, but if I need to do this for 3 thousand lines in different entities, this is a problem

soupisawesome commented 2 months ago

I have this problem as well.

I want to update several hundred assets across many entities. I made a model that is in the root and allow sub-entities. Does not allow line creation, but does allow line update.

The file of data doesn't say or have the ability to know the entity of the asset, but it knows the serial number and name of the item, so it should be able to find the asset.

In order to do this with the current version of datainjection, I would have to import the file 15 times, once for each entity. I would then have to export the failures file and compare them to make sure everything was imported.