IAppointmentAssignTo Method |
Assign appointment to an associate, from another associate (default from current associate)
Namespace:
SuperOffice.COM.SuperOfficeDB
Assembly:
SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntaxvoid AssignTo(
SOAssociate ToAssociate,
SOAssociate FromAssociate = null
)
Sub AssignTo (
ToAssociate As SOAssociate,
Optional FromAssociate As SOAssociate = Nothing
)
Dim instance As IAppointment
Dim ToAssociate As SOAssociate
Dim FromAssociate As SOAssociate
instance.AssignTo(ToAssociate, FromAssociate)
void AssignTo(
[InAttribute] SOAssociate^ ToAssociate,
[InAttribute] SOAssociate^ FromAssociate = nullptr
)
Parameters
- ToAssociate
- Type: SuperOffice.COM.SuperOfficeDBSOAssociate
The associate you want to assign this appointment to - FromAssociate (Optional)
- Type: SuperOffice.COM.SuperOfficeDBSOAssociate
The associate who assigns this appointment to someone else
ExamplesAssignTo
Dim soDB, myAppnt
Set soDB = CreateObject("SuperOfficeDB.Database")
e
If not (soDB is nothing) Then
soDB.Login "USERNAME", "PASSWORD"
Set myAppnt = soDB.CreateAppointment
myAppnt.SetDefaults
myAppnt.Contact = soDB.GetContact(soDB.OwnerContactId)
myAppnt.AssignTo soDB.GetAssociate(23), soDB.GetAssociate(soDB.Database.UserAssociateId)
myAppnt.TimeZoneLocationId = 2
If myAppnt.Sentry.AreAllRequiredFieldsFilled Then
myAppnt.Save
End If
else
MsgBox "Unable to connect to database"
end if
Set objSO = Nothing
See Also