You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2023-08-17 04:04:13

xtekrepair
Member
Registered: 2021-08-05
Posts: 2

External links field list

Is there a way to get a list of available fields for the external links?

I am trying to use the remote id, but cannot find what field to use...

Thanks!

Offline

#2 2023-08-17 12:56:20

cconard96
Moderator
Registered: 2018-07-31
Posts: 2,813
Website

Re: External links field list

When using the field tags, it only works with data directly in the record of the item. In the case of the remote ID, it isn't stored in the glpi_computers table (for example with computers), it is actually in glpi_items_remotemanagements.
These fields are not documented anywhere currently.

Using the API, you should be able to determine which fields are valid for a given item type by doing a GET request for one of the items (ignoring the links property).
For example:
http://myglpi.local/apirest.php/Computer/10

You could also get a list via the DB:
SHOW COLUMNS FROM glpi_computers

It is also possible to find them directly in the web UI if you use your browser's "inspect element" feature on a field in the item's form and look at the field's name attribute.


GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.

Offline

Board footer

Powered by FluxBB