Navigation

    Kopano
    • Register
    • Login
    • Search
    • Categories
    • Get Official Kopano Support
    • Recent
    Statement regarding the closure of the Kopano community forum and the end of the community edition

    Get addressbook contact picture

    Scripting
    2
    3
    1069
    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.
    • dbgtmaster
      dbgtmaster last edited by

      Hello,

      how can i get the contact picture in the addressbook of some contacts?

      My Code:

      // Open addressbok
      if (!$abEntry = mapi_msgstore_openentry($publicStore, hex2bin(FOLDER_ENTRYID))) {
      	errExit('Cannot open addressbook by ENTRYID!');
      }
      
      // Query entryid:
      $message = mapi_msgstore_openentry($publicStore, $contactEntryID);
      if (!$message) {
      	errExit("Cannot get entryid");
      }
      
      // Get attachments
      $attachmentTable = mapi_message_getattachmenttable($message);
      $attachmentData = mapi_table_queryallrows($attachmentTable);
      

      I can read all attachments of a contact, but how to know, which attachment ist the contact picture?

      Please help me!

      fbartels 1 Reply Last reply Reply Quote 0
      • fbartels
        fbartels Kopano @dbgtmaster last edited by fbartels

        Hi @dbgtmaster ,

        briefly talked to a developer about this and the attachment in questions contains the property PR_ATTACHMENT_CONTACTPHOTO

        0_1501509608563_Image+Pasted+at+2017-7-31+17-38.png

        I’m curious. what are you developing? We have some external plugins and project listed at https://stash.z-hub.io/projects/COM/repos/projects-and-resources/browse, maybe you want to add your project later as well.

        Regards Felix

        Resources:
        https://kopano.com/blog/how-to-get-kopano/
        https://documentation.kopano.io/
        https://kb.kopano.io/

        Support overview:
        https://kopano.com/support/

        1 Reply Last reply Reply Quote 0
        • dbgtmaster
          dbgtmaster last edited by

          Hi,

          thanks for your response, i try it.
          I develop a script for my asterisk, which query the incoming call number to a public addressbook and displays the name and photo, if availble.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post