Options

Outlook Integration with Public Folders

DanielDaniel Member Posts: 5
edited 2003-03-19 in Navision Attain
How is it possible to transfer contact addresses from Navision V3.60 to Outlook 2000 (SP-3) public folders without failures.
Transferring to Outlook's personal folders is working faultless!

Does anyone know if this is possible or certain permissions have to be set in Navision, Outlook or on the Exchange Server?

Are there information and documentation about OLWrapper.dll?

Thanks in advance for your answers
Daniel Kempf

Comments

  • Options
    Lars_WestmanLars_Westman Member Posts: 116
    This is no problem at all. here's an example (with swedish fhieldnames)


    OlFolders := OlApp.GetNamespace('MAPI').Folders;
    OlMapiFolder := OlFolders.Item('Public Folders');
    OlFolders := OlMapiFolder.Folders;
    OlMapiFolder := OlFolders.Item('Favorites');
    OlFolders := OlMapiFolder.Folders;
    OlMapiFolder := OlFolders.Item('MyPublicFolder');
    OlFolders := OlMapiFolder.Folders;
    OlMapiFolder := OlFolders.Item('MyPublicSubFolder');

    OlContact := OlMapiFolder.Items.Add('IPM.Contact.MyCustomForm');


    OlContact.FullName := Kontakt.Namn;
    OlContact.CompanyMainTelephoneNumber := Prospect.Telefonnr;
    OlContact.BusinessAddressCity := Prospect.Ort;
    OlContact.BusinessAddressCountry := Prospect.Landkod;
    OlContact.BusinessAddressPostalCode := Prospect.Postnr;
    OlContact.BusinessAddressState := Prospect.Delstat;
    OlContact.BusinessAddressStreet := Prospect.Adress;
    OlContact.BusinessFaxNumber := Prospect.Telefaxnr;
    ...and all other fields You want to populate

    OlContact.Display;

    Have Fun!

    //Lars
  • Options
    DanielDaniel Member Posts: 5
    Thanks Lars!

    Basically it works! Where would you integrate it into Navision that the synchronisation for new created contacts works bidirectionally also?
  • Options
    Lars_WestmanLars_Westman Member Posts: 116
    You might take a look in versoin 3.60, codunit 5069 and the function RetrieveContact. There You can see how You can use the OlContactID, which is a unique identifier of a contact in Outlook. I think You have the same kind of identifiers on other types of Outlook items as well.

    If You store the ID in Navision You should be able to see which has been added in Outlook and import them to Navision.

    Good louck!

    //Lars
Sign In or Register to comment.