CreateAppointment

Definition

This is a method of theSAPCalendar.Calendarlibrary. It creates an appointmentobject that can be added to the calendar.

Use

This method is used to get an appointment object from the calendar. Then, it allows the application user to create an appointment in the calendar.



Use the AddAppointment method to add this appointment to the calendar.

Structure

TheCreateAppointmentfunction has the following characteristics:

Name

CreateAppointment

Signature

Public Function CreateAppointment() As CRMCalendarAppointment

Parameters

objAppointmentasObject

Return Value

Object

Example

Assume that the application user wants to create an appointment and has double-clicked on a calendar view. For an appointment to be created, the appointment object must be got from the calendar. The following code describes how to get the appointment object:



‘Define the variable

Dim objAppointment as Object

‘Get a new appointment object from the calendar

objAppointment = pObjCalendar.CreateAppointment

This function returns an appointment object. Data entered after the double-click by the user is populated into the appointment. Then, the appointment must be added to the calendar using the AddAppointment method.