contacts.addressIDToContactTypeID
Description
Get the contact type ID for an address.

Parameters
addressID number

Return value
contactTypeID number (< 1 if not found)

Example
local contactTypeID = contacts.addressIDToContactTypeID(1234)
print(contactTypeID)

Comments
Contact types are categories such as "Customer", "Supplier", "Donor" (see ContctTypes database table).

See also

Back