Click or drag to resize

IAppointment Methods

The IAppointment type exposes the following members.

Methods
  NameDescription
Public methodCode exampleAcceptInvitation
Accept or reject this invitation: 0 = Reject, 1 = Accept.
Public methodAddParticipant
Public methodCode exampleAssignTo
Assign appointment to an associate, from another associate (default from current associate)
Public methodCode exampleCancelChanges
Undo any changes made since the object was loaded. If you made changes to the model that you dont want to be saved to the database, call the CancelChanges method
Public methodCode exampleChangeIdentity
Loads a different record into the object. Causes changes to the existing object to be saved first. Saves the changes made to the appointment model to the database. The last thing you do to an object if you want the changes you made to be saved. The ChangeIdentity method calls the save method first.
Public methodClone
Clone this appointment
Public methodCode exampleDelete
Delete the object from the database. May throw an error if you are not allowed to delete the object. Deletes the specified appointment model from the database
Public methodCode exampleGetNoOfParticipants
Number of participants for this booking.
Public methodCode exampleGetParticipants
Get all participants of the required type for this appointment. Returns an SOAssociates or an SOPersons list depending on the type.
Public methodCode exampleHasConflict
Has this appointment(booking) a time conflict? 0 = enResponseReject, 1 = enResponseAccept
Public methodCode exampleInsertAppointmentPerson
If the main appointment has a person, insert the person as a participant on the booking.
Public methodIsSuggestedItem
Is this appointment used as a suggested appointment?
Public methodRemoveParticipant
Public methodCode exampleSave
Persist the object to the database. May throw an error if you are not allowed to save changes to the object. Saves the changes you made to the appointment model to the database, does not return the new data from the database
Public methodCode exampleSetDefaults
Populate the object with default values, such as setting the owner to the current user. The user is able to define their own default types, priority and duration under View – Preference in the CRM 5 clients. Calling the setDefaults method will set these values on the appointment.
Public methodCode exampleSetDefaultsCall
SetDefaults for a phone call appointment. Has short duration. Starts now. The user is able to define their own default types, priority and duration under View – Preference in the CRM 5 clients. Calling the setDefaults method will set these values on the appointment. The user is able to define their own default types, priority and duration under View Preference in the CRM 5 clients. Calling the SetDefaultsCall method will set these values on the appointment.
Public methodCode exampleSetDefaultsToDo
SetDefaults for a ToDo appointment. Has no start time. The user is able to define their own default types, priority and duration under View – Preference in the CRM 5 clients. Calling the setDefaults method will set these values on the appointment. The user is able to define their own default types, priority and duration under View Preference in the CRM 5 clients. Calling the SetDefaultsToDo method will set these values on the appointment as long as it is of type = ToDo
Public methodSuggestedItemId
Get the suggested item id
Top
See Also