Click or drag to resize

IContactMother Property

unused. In a multi-company corporation this is the higher-level contact. The mother property is not used in CRM 5 or SIX, but will be implemented at a later stage, so do not change it

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
SOContact Mother { get; }

Property Value

Type: SOContact
SOContact – the higher-level contact (mother company) as a contact object
Examples

Mother

VB
Dim objDB
Dim msg

Set objDB = CreateObject("superofficedb.database")
If Not (objDB is Nothing) Then
    objDB.login "<userid>", "<password>" ' log in to the database

    Set myContact = objDB.GetContact(2) 'get contact with contact_id=2
    msg = msg & "Counters: " & CStr(myContact.Counters.LastCompletedActivity(enAppointAllCounters, Nothing, enDirectionAllCounters)) & vbCrLf
    msg = msg & "Group: " & myContact.Group.Id & vbCrLf
    msg = msg & "Mother name: " & myContact.Mother.Name & vbCrLf
    msg = msg & "Are all required fields filled: " & myContact.Sentry.AreAllRequiredFieldsFilled & vbCrLf
Else
    MsgBox "unable to connect to database"
End If
Set objso = Nothing

See Also