selection Table (23)

Selections

Fields

NameDescriptionTypeNull
selection_idPrimary keyPK
associate_idAssociate who owns the selectionFK associate
group_idxOriginal primary user group of associateFK UserGroup
nameName, freetext indexedString(219)
text_idDescription textFK text
postitText_IdPostit textFK text
visibilityObsolete, but still maintained denormalization of visibleforUShort
seltype0 = static selection, 1 = dynamic selection, 2 = combined selection. See the ‘SystemType’ field to disnguish between user selections, and Temporary or other system-managed kinds of selectionUShort
searchCat_idSearch category (list)FK SearchCat
companyUniqueOnly one person from a company may be selected as a memberUShort
soundExWhat the name sounds like, for duplicate detectionString(9)
sourceHow did we get this selection? For future integration needsUShort
memberCountHow many selectionmembers (for progress bar)UInt
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
includePerson0 = Include first person, 1 = Include all persons, 2 = Include no personsInt
targetTableNumberTable number that this is a selection of (contact, sale, appointment, …)TableNumber
doneDone (0=false, 1=true). Status implies changes in which fields are shown in GUI, as well as which fields can be updatedBool
combinationTypeHow should the inputs of a combined selection be combinedEnum SelectionUnionType
leftSelectionIdID of the left selection of a combined selectionFK selection
rightSelectionIdID of the right selection of a combined selectionFK selection
dashboard_tile_definition_idThe associated tile definitionFK dashboard_tile_definition
SystemTypeSelection system type - defines if this selection is one that is managed by the system, and what kind it isEnum SelectionSystemType
chartKeyID/key of the last-used chart tile on this selectionString(254)
lastLoadedThe date/time this selection was last loaded (selectionentity fetched)DateTime
lastLoadedByWho last loaded this selectionFK associate
lastMembershipChangeThe date/time the membership the selection last changed. Dynamic: change of criteria; Static: add/remove members; Combined: change of algorithmDateTime
lastMembershipChangeByWho last changed the membershipFK associate

selection table relationship diagram

How the selections in a combined selections should be put together

| combinationType | ID | Comment | |---|---|---| | Unknown | 0 | Combination type is unknown/indefined | | SubtractRightFromLeft |  1 | All of left, except where it overlaps with right | | SubtractLeftFromRight | 2 | All of right, except where it overlaps with left | | Intersect | 3 | Those present in left AND right only | | XOR | 4 | Those present in left or right, but not both | | Union | 5 | All, but no duplicates for those present in left and right |

Indexes

FieldsTypesDescription
selection_idPKUnique
group_idxFKIndex
nameString(219)Index
soundExString(9)Index
sourceUShortIndex
doneBoolIndex
associate_idFKClustered

Relationships

TableDescription
associateEmployees, resources and other users - except for External persons
board_view_settingsSettings for selection board view
dashboard_tile_definitionDescribes the contents of a tile
s_linkLinks in messages to measure success rate of a campaign.
s_shipmentContains info about one shipment. The addresses are stored in s_shipment_addr
SearchCatSearchCat list table
selectionSelections
selectionmemberSelection detail table Each row in a selection is represented by one record in this table. Contact_id is always filled in, person_id is optional, but if used, must point to a person belonging to the contact in contact_id.
textLong text fields from all over the system
UserGroupSecondary user groups
VisibleForVisible for rights, who may see this appointment/document, sale, salehist or selection
workflowSuperOffice specific info about a workflow

Replication Flags

  • None

Security Flags

  • Sentry controls access to items in this table using user’s Role and data rights matrix.
  • Visibility controlled via matching VisibleFor row.