Options

Take outlook address book to a table

WishmanWishman Member Posts: 36
Hi everybody,

I want to take the address book to a navision table. Just the email adress and the contact name is enough for me.
I wrote a code

CREATE(OutlookApplication);
OutlookEmail:= OutlookApplication.CreateItem(0);
OutlookMAPI := OutlookApplication.GetNamespace('MAPI');
MyFolder := OutlookMAPI.GetDefaultFolder(13);

But the last sentence doesn't work and I don't know what "13" means.(Actually I looked at the msdn)

Does anybody have an idea about?

Comments

  • Options
    ajayjainajayjain Member Posts: 119
    get outlook integration objects from the download section
    Ajay Jain
    UK
  • Options
    WishmanWishman Member Posts: 36
    Thanx,

    But I have already done it. We are a company and I want to take the global address list. Neigther in the visual basic guide for outlook nor in these backups, nothing exists about this.

    Any other suggestions?
  • Options
    ajayjainajayjain Member Posts: 119
    you can write macro and get the code


    To Get Folders....................

    ContactsFolder :=10
    CalenderFolder:=9
    InboxFolder:=6
    TaskFolder:=13
    FolderDeletedItems:=3
    FolderOutbox:=4
    FolderNotes:=12
    FolderSentMail:=5

    To Create Folders...............

    0 = E-Mail
    1 = Appointment
    2 = Contactperson
    3 = Task
    4 = Logbookitem
    5 = Note
    6 = Discussion
    Ajay Jain
    UK
Sign In or Register to comment.