Exchange Server .

AshokKumarRajputAshokKumarRajput Member Posts: 6
Hi,
I have some problem when using the Exhange server .Line 1 in program is for the update calender for local system. Line 2. is for update Calnder for Exchange server. but it is not working.it show some error 'M/S Exchange server is not open.....' here 9 is for Calender` folder.
so what i sthe solution for this to update or create the Calender on exchange server.


namespace := OLApplication.GetNamespace('MAPI');
Recip := namespace.CreateRecipient(MailID);
Line 1. // calendarfolder := namespace.GetDefaultFolder(9);

line 2. // calendarfolder :=namespace.GetSharedDefaultFolder(Recip,9);
appointItems := calendarfolder.Items;
ApptItem := appointItems.Add;
ApptItem.Subject := 'Time Off Request : ' + Employee."First
ApptItem.Start := TODAY;
ApptItem.Save;

Thanks
Ashok

Comments

  • MalajloMalajlo Member Posts: 294
    You don't have set up outlook sync fully. You must select three folders.

    Also if there was a change (user recreated, profile recreated), repeat Outlook sync settings. No matter it looks same. Everything is in GUIDs...

    And of course (correct me if I'm wrong), user must have MAPI profile with Exchange connection created. Not only pop3 with personal folder.
Sign In or Register to comment.