Community
    • Categories
    • Recent
    • Popular
    • Users
    • Search
    • Register
    • Login

    Contact Deatails per API Abfragen

    Scheduled Pinned Locked Moved Entwicklung
    3 Posts 1 Posters 456 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F Offline
      Franky779
      last edited by Franky779

      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.

      72bc1c67-bbac-4269-9f1a-516ea234081f-image.png

      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

      F 1 Reply Last reply Reply Quote 0
      • F Offline
        Franky779 @Franky779
        last edited by

        Hier sind genau die Felder die ich brauche. Aber mit welcher Methode frage man auf "C__CATS__PERSON"??

        https://kb.i-doit.com/en/i-doit-pro-add-ons/api/category-fields-for-data-arrays.html#persons-c__cats__person

        F 1 Reply Last reply Reply Quote 0
        • F Offline
          Franky779 @Franky779
          last edited by

          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

          1 Reply Last reply Reply Quote 0

          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
          • First post
            Last post