contacts.addressIDToContactTypeID
Get the contact type ID for an address.
addressID number
contactTypeID number (< 1 if not found)
local contactTypeID = contacts.addressIDToContactTypeID(1234)
print(contactTypeID)
Contact types are categories such as "Customer", "Supplier", "Donor" (see ContctTypes database table).