Click or drag to resize

IDatabaseGetSaleStakeholder Method

Get an existing SaleStakeholder by its salestakeholder_id

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
SOSaleStakeholder GetSaleStakeholder(
	int SaleStakeholderId
)

Parameters

SaleStakeholderId
Type: SystemInt32

Return Value

Type: SOSaleStakeholder
SOSale – a sales record
Examples

Get the sale with id = 2

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

VB
dim objso
dim objsale
set objso =  CreateObject("superofficedb.database")
If not (objSO is nothing) Then
    objso.login  "<userid>", "<password>"
    set  objsale = objso.getsale(2)
    msgbox  "sale with sale_id = 2: " & objsale.saletext & " Amount: " & objsale.amount
else
    msgbox  "unable to connect to database"
end if
set objso = nothing

See Also