You are not logged in.
Pages: 1
Hello,
I would like to update and make research on customs fields via the API.
I succeeded to create/update fields with the API thanks to this post #id=161624
But I didn't succeed to have responses from the API when I request this field.
I always get the answer: 400 : ['ERROR', 'Bad field ID in search criteria; view documentation in your browser at ]
For the id field, I retrieved it by searching directly in the GLPI dashboard and get it in the URL (#76665 in my case).
1) How can I know all the id fields? To be sure that I request the correct field?
2) It is possible to request a search for customs fields? And how can I do this?
To test it, I set the same content in the field comment and my custom field.
When I request on the id #16, I get the correct response, when I request on the id #76665, I get Error 400.
My configuration :
GLPI 9.3.2
Plugins :
Additionnal fields : 1.8.2
File injection : 2.6.4
Form Creator : 2.8.2
More Reporting : 1.5.3
OCS Inventory NG : 1.5.6
Reports : 1.12.0
Thanks
Offline
Hello,
No one got this error? Or try to search on a custom field (in softwarelicense)?
Regards,
Vincent
Offline
Hello,
No one got this error? Or try to search on a custom field (in softwarelicense)?Regards,
Vincent
Did not try to search on a custom field.
Did you make any progress??
GLPI 9.4.3 - Currently in Dev environment - preparing for production
-Preparing data migration from OSTicket to GLPI for the Ticketing/Helpdesk part.
-Preparing data migration from OrangeSCRUM to GLPI for the project management part.
@Working at a company that is responsible for the IT environment of over 4500 employees that have IT assets
Offline
Hello,
Still the same error, right now, I use the comment field as a workaround...
Regards,
Vincent
Offline
Hello,
I did other tests today.
I have a custom field for the computer object (keyboard) and another custom field for the licensesoftware object (arrivaldate).
In the computer object, I can retrieve the id for the keyboard field (/apirest.php/listSearchOptions/Computer) and so requested with this field.
But I cannot retrieve my custom field for the license software (/apirest.php/listSearchOptions/softwarelicense)
Is there a restriction with the licensesoftware object?
No problem to update the field arrivaldate by their name (arrivaldatefield)
Regards
Last edited by VincentGelot (2019-12-06 17:51:49)
Offline
Pages: 1