Results 1 to 10 of 10

Thread: Reading Task from PHP-Mapi

  1. #1
    Junior Member
    Join Date
    Mar 2011
    Posts
    1

    Reading Task from PHP-Mapi

    Hello,
    i´ve got a question about reading tasks from user-store, by using the PHP-Mapi.

    I tried this by using the posted snippet, but i only get some unreadable stuff, using some loops & var_dump.

    Thanks for any hints ;-)

    PS: The MAPI itself works very well. i was already able to add some tasks and do some other cool stuff.

  2. #2
    Senior Member
    Join Date
    Nov 2008
    Location
    Hilden, close to Duesseldorf, NRW, Germany, Europe, Earth...
    Posts
    1,070

    Re: Reading Task from PHP-Mapi

    Hi Schangu,

    If you read the contents of a folder, it means that there are ID's included. ID's are binary, same for binary data like pictures and so on. To get them readable you need to know the variable type being used for the Property. This is encoded in the properties value. Every binary data you need to output bin2hex encoded to have it readable.

    Best regards

    Andreas
    Using Zarafa 7.2.5-29, Z-Push 2.3.4 with GZip and soon again SMS Support.

  3. #3
    Junior Member
    Join Date
    Apr 2010
    Posts
    4

    Re: Reading Task from PHP-Mapi

    Hi,

    would it be possible to get the full code example to list all the tasks of a user? Thanks a lot!

    Best regards

  4. #4
    Senior Member
    Join Date
    Sep 2007
    Location
    Aka SebastianBrasil
    Posts
    1,467

    Re: Reading Task from PHP-Mapi

    You can see a full example looking at the z-push code.
    E.g. the getTask() method.

    Creating a new php file, including a couple of files like mapimapping, mapiutils, utils and syncobjects you could also use this function to read/write a full task (or any other) object.

    I hope this helps.

    Cheers,
    Sebastian

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

    Re: Reading Task from PHP-Mapi

    Hi alpinist,

    here is an example of getting all calendar items of an user: . You'll just have to replace PR_IPM_APPOINTMENT_ENTRYID with PR_IPM_TASK_ENTRYID. You can find the task properties in the code of the webaccess.

    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.

  6. #6

    Re: Reading Task from PHP-Mapi

    Hi, Manfred

    I used your example from here () it's work properly.

    But !! about

    it's return only 256 characters how can I fix this problem because some task body is more than 256 characters.

    I found function openpropertytostream used something like this
    I have a question about parameter $msg where come from and how can I get them ??

    Thanks for any hints.

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

    Re: Reading Task from PHP-Mapi

    Hi funganz,

    $msg is simply the message you've opened before. It's the same variable you're using in mapi_getprops. You can also read large bodies like this:

    I receive notifications if there's a new post in PHP Development, so there's no need to send me an email right after you ask anything here I was out of the office for the past couple of days.

    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.

  8. #8

    Re: Reading Task from PHP-Mapi

    Hi, Manfred

    I'm so sorry about email. But now I still can't read large body. Can you revise my source code? Because I don't understand your hint and I don't have any idea.

    This is source.

    Thank you very very much for your help.

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

    Re: Reading Task from PHP-Mapi

    Hi funganz,

    you have to open the message using the entryid and then get its body via mapi_openproperty. It's just that piece of the code:

    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.

  10. #10

    Re: Reading Task from PHP-Mapi

    Hi, Manfred

    Thank you for your reply (you save my life ;-) ). Now I can get all body of task.

    Thank you for your help.
    Nattapon S.

Similar Threads

  1. Replies: 0
    Last Post: 18-03-2012, 05:56 PM
  2. Create Task with PHP-MAPI in Japanese language
    By funganz in forum PHP Development
    Replies: 4
    Last Post: 24-06-2011, 03:50 AM
  3. reading pane keeps showing up
    By sysadmin5347 in forum WebAccess usage Archives
    Replies: 1
    Last Post: 29-12-2010, 05:03 PM
  4. Webaccess shows NaN in Task/Task-List
    By kkakb in forum WebAccess usage Archives
    Replies: 1
    Last Post: 21-05-2010, 07:10 AM
  5. Reading from public calendar
    By Deefjuh in forum PHP Development Archives
    Replies: 2
    Last Post: 05-05-2009, 07:41 AM

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
  •