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
0
Comments
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
http://www.linkedin.com/in/larswestman
Basically it works! Where would you integrate it into Navision that the synchronisation for new created contacts works bidirectionally also?
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
http://www.linkedin.com/in/larswestman