Click or drag to resize

IDatabaseGetPerson Method

Get a Person object by person_id. Returns an error if the person is hidden by sentry rules.

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
SOPerson GetPerson(
	int PersonId
)

Parameters

PersonId
Type: SystemInt32
the person’s identifier

Return Value

Type: SOPerson
SOPerson – the person with the given ID
Examples

Get the person with ID = 3

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

VB
dim objso
dim objperson
set objso = CreateObject("superofficedb.database")
If not (objSO is nothing)  then
    objso.login "<userid>",  "<password>"
    set  objperson = objso.getperson(3)
    msgbox "contact person firstname = "  & objperson.firstname
else
    msgbox "unable to connect to database"
end if
set objso = nothing

See Also