1. Moshe Tangi
  2. PowerBuilder
  3. Friday, 16 October 2020 12:58 PM UTC

Hi all

 

How do i create an appointment in outlook from my app ?

I am using ole for sending email via outlook , but never tried to set an appointment 

using 2017 R3 

 

Thanks

Andrew Barnes Accepted Answer Pending Moderation
  1. Friday, 16 October 2020 23:41 PM UTC
  2. PowerBuilder
  3. # 1

The answer is kind of involved.  Here are some snippets from an OleOutlook objects that is inherited from OleObject.  This should get you started.

 

CONSTANT LONG olFolderCalendar = 9
oleObject MapiNameSpace
OleObject appointment_item, calendar_folder

THIS.ConnectToNewObject("Outlook.Application")

MapiNameSpace = THIS.GetNameSpace("MAPI")

calendar_folder = MapiNameSpace.GetDefaultFolder(olFolderCalendar)

appointment_item = calendar_folder.Items.Add(olAppointmentItem)

// set the various properties
apoointment_item.Start = 
appointment_item.End =
appointment_item.AllDayEvent = 
appointment_item.Subject = 
appointment_item.Location = 
appointment_item.Body =

appointment_item.Save()

 

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.