Click or drag to resize

IAppointmentSetDefaults Method

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.

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
void SetDefaults()

Implements

IModelBaseSetDefaults
Examples

Set default values to appoinment

This text may be copied to the notepad, and saved as a *.vbs file. Remember to change the login information.

VB
Dim objSO 
Set objSO = CreateObject("SuperOffice.Application")
If not (objSO is nothing) Then
    objSO.CurrentAppointment.SetDefaults()
    msgbox "Take a look at the current appointment now, when you click OK the changes will be cancelled."
    objSO.CurrentAppointment.CancelChanges()          
else
    MsgBox "Unable to connect to database"
end if
Set objSO = Nothing

See Also