Results 1 to 5 of 5

Thread: EntryID of addressbook entry

  1. #1
    Junior Member
    Join Date
    Sep 2010
    Posts
    3

    EntryID of addressbook entry

    Hi @all,

    I've tried to catch the zarafa contacts in my addressbook via php, it works fine. Unfortunately, I have problems to get the entryid. As far as I unterstand, the entryid is the primary key of the addressbook entry.

    My code is like this:

    For the entryid I just get a value like vyTîkcFa?fz,ñË»áëoàCíö§åmä_

    How can I get the entryid of every's contact entry?

    Thanks a lot!

    Toby

  2. #2
    Senior Member
    Join Date
    Nov 2007
    Location
    Belo Horizonte, Brazil
    Posts
    1,475

    Re: EntryID of addressbook entry

    Hi Toby,

    entryid is a binary property, so it looks like you've posted. If you want to get a human readable value, you can use php's bin2hex function to transform it. However in order to open a mapi object you will need the entryid in its binary form.

    What do you mean by "every's contact"?

    Greets, Manfred
    Please do not PM me asking for support. Use the forum instead. Thank you.
    I usually check the mobility thread at the end of the day, so please have some patience if there's no immediate response. Asking to look at certain thread per PM won't result in a faster answer.

  3. #3
    Junior Member
    Join Date
    Sep 2010
    Posts
    3

    Re: EntryID of addressbook entry

    Hi Manfred,

    Thank you for your quick reply.

    When I try a binary like this

    I've always got the value 2147746063 for every entryid

    print_r($rows);
    The value can't be the ID, seems to be an error code.

    Can you help? What I'm doing wrong? :-/

    Many thanks in advance!!!
    Toby

  4. #4
    Senior Member
    Join Date
    Nov 2007
    Location
    Belo Horizonte, Brazil
    Posts
    1,475

    Re: EntryID of addressbook entry

    Hi Toby,

    was right. What I meant was

    gives you a human readable entryid value. However to open a contact as a mapi object you will need the value in $rows[$properties[0]['entryid']] . If you want to access every contact you've found, you have to loop through the $rows.

    It would be easier to help if you would explain what are you trying to do.

    Greets, Manfred
    Please do not PM me asking for support. Use the forum instead. Thank you.
    I usually check the mobility thread at the end of the day, so please have some patience if there's no immediate response. Asking to look at certain thread per PM won't result in a faster answer.

  5. #5
    Junior Member
    Join Date
    Sep 2010
    Posts
    3

    Re: EntryID of addressbook entry

    Hi Manfred,

    My idea was to export the contacts in a mysql database every day, to avoid duplicated entries I need an ID to update existing entries.

    It seems to use the hexcode in my database as ID...

    Thank you for your extensive help!
    Toby

Similar Threads

  1. Questions about entryid
    By zeguigui in forum PHP Development
    Replies: 2
    Last Post: 09-12-2011, 04:20 PM
  2. [SOLVED] Retrieve entryID
    By perit in forum PHP Development
    Replies: 4
    Last Post: 25-10-2011, 03:42 PM
  3. missing entry
    By GuuNevever in forum PHP Development Archives
    Replies: 3
    Last Post: 19-07-2010, 06:35 AM
  4. BlackBerry: MsgMemStateDb::AddMessageState - EntryId is inva
    By grenzlaeufer in forum Administration and Integration Archives
    Replies: 0
    Last Post: 23-03-2010, 02:38 PM
  5. Sample for Addressbook Entry's?
    By fsdhh in forum PHP Development Archives
    Replies: 11
    Last Post: 22-01-2009, 03:35 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •