Open Rico29 opened 7 months ago
from https://github.com/glpi-project/glpi/blob/main/apirest.md#search-items :
uid_cols (default false): a boolean to identify cols by the 'uniqid' of the searchoptions instead of a numeric value (see List searchOptions and 'uid' field)
Hello I'm actually integrating your work in our ansible setup, to get inventory from GLPI API. works fine.
One problem though : the fact that it's not possible to get elements by name (uid_cols=true). The inherent problem is when using meta search : if a meta filed has the same id in its category, it overwrites the result.
example when trying to get computers with a specific version of a software installed :
GET PARAMS :
result of query :
but if I remove the "uid_cols:1" I get this result, which does not display anymore the targeted hostname :
because "Software.name" has id 1 in software itemtype.
Is there any workaround ? Regards