Click or drag to resize

IDatabaseSystemOwnerContactId Property

Get the system owner contact id (system wide). The owner contacts are contacts that may own associates, and they are the most important contacts in the database. If these contacts are deleted or changed without a new key code from SuperOffice the database may be destroyed. In a system with several databases (satellites), there will be other owner companies. The contact_id of this company will be returned when asking for OwnerContactId.

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

Property Value

Type: Int32
Long – contact_id
Examples

Get the SystemownerContactId

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("SuperOfficeDB.Database")

If not (objSO is nothing) Then
    objSO.login "<USERNAME>", "<PASSWORD>" 
    Msg = "Database owner contact id = " & objSO.ownerContactId
    msg = msg & vbCrLf & "System owner contact_id = " & objSO.SystemownerContactId
    msgbox msg, vbInformation, "SuperCOM"
else
    msgbox "Unable to log in"

end if
set objSO = Nothing

See Also