address Table (7)

Contact and Person addresses

Fields

NameDescriptionTypeNull
address_idPrimary keyPK
owner_idRecord id of owner: Contact or PersonId
atype_idxBit mask, combines address type (EAddressType) and owner type (EOwnerType)Enum AddressType
zipcodeZip code, alphanumericString(11)
cityCity corresponding to zip codeString(79)
stateStateString(5)
countyCounty (not country)String(29)
address1Address line 1String(79)
address2Address line 2String(79)
address3Address line 3String(79)
registeredRegistered whenUtcDateTime
registered_associate_idRegistered by whomFK associate
updatedLast updated whenUtcDateTime
updated_associate_idLast updated by whomFK associate
updatedCountNumber of updates made to this recordUShort
validFromValid from date for this recordDateTime
validToValid to date for this recordDateTime
wgs84latitudeLatitude (that’s north/south), decimal degrees, relative to WGS 84 ellipsoid. SuperOffice ASA is at 59.91892. This value needs no further grid reference or other qualifying information.Double
wgs84longitudeLongitude (that’s East/west), decimal degrees, relative to WGS 84 ellipsoid. SuperOffice ASA is at 10.73159. This value needs no further grid reference or other qualifying information.Double

address table relationship diagram

Values needed to access the address table

This table must contain special values that would be difficult to guess correctly. These are listed below with a description of how to use them.

| Address type | ID | Comment | |---|---|---| | Contact | 1 | 0x0000 | | Person | 16384 | 0x4000 |

| SubAddress type | ID | Comment | |---|---|---| | Postal | 1 | 0x0001 | | Street | 2 | 0x0002 | | Private | 3 | 0x0003 |

For example: A person’s private address will have Address type Person 16384 + Subtype private 3 = 16387 as atype_idx in the address table. Use a bitwise OR to get the final address type value.

New for quote:

| Address type | ID | Comment | |---|---|---| | Billing address | 8196 | | Shipping address | 8197 |

Indexes

FieldsTypesDescription
address_idPKClustered, Unique
zipcodeString(11)Index
stateString(5)Index
owner_id, atype_idxId, EnumUnique

Relationships

TableDescription
associateEmployees, resources and other users - except for External persons
contactCompanies and Organizations.
personPersons

Replication Flags

  • Area Management controlled table. Contents replicated to satellites and traveller databases.
  • Replicate changes UP from satellites and travellers back to central.
  • Copy to satellite and travel prototypes.

Security Flags

  • Sentry controls access to items in this table using user’s Role and data rights matrix on the table’s parent.