Contact Deatails per API Abfragen
-
Hallo zusammen,
wir haben unsere Contacts in i-DoIt via LDAP angelegt. Hier befüllen wir Custom Fields wie Durchwahl...Jobtitel etc. Diese Felder würde ich gerne über die API auslesen.

Leider liefert mir die Abfrage auf Contact nur ganz rudimentär Daten.
params = { "id": 12345 } contactDetails = objIdoit.getJsonData(method='cmdb.object.read', params=params)Laut Doku gibts hier ein Contact-Objekt...das liefert aber nur mit dem Contact relevante Geräte....ich brauche aber die Contactdetails.
Welchen Befehl verwende ich am besten um die vollen Contact Daten zu bekommen?
VG Frank
-
Hier sind genau die Felder die ich brauche. Aber mit welcher Methode frage man auf "C__CATS__PERSON"??
-
OK, mit SEHR viel rumprobieren komme ich dorthin wo ich will. Wer das noch braucht. Hier meine Abfrage.
params = { "id": 12345, "categories": ["C__CATS__PERSON"], "filter": { "type": 53, "ids":[12345] }, } contactDetails = objIdoit.getJsonData(method='cmdb.objects.read', params=params)id = Contact ID in idoit
categories C__CATS__PERSON = die erweiterten Infos zum Kontakt inkl. Custom Fields
type 53 = Personen
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login