COMMUNICATIONLETTER (4.0SP17)

This table holds letters associated with Alru communications.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

SEGMENTATIONID

uniqueidentifier

true

FK to MKTSEGMENTATION

MKTASKLADDERID

uniqueidentifier

true

FK to MKTASKLADDER

MAILPACKAGEID

uniqueidentifier

true

FK to MKTPACKAGE

EMAILPACKAGEID

uniqueidentifier

true

FK to MKTPACKAGE

MAILSEGMENTID

uniqueidentifier

true

FK to MKTSEGMENT

EMAILSEGMENTID

uniqueidentifier

true

FK to MKTSEGMENT

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

EMAILSTATUSID

uniqueidentifier

true

FK to EMAILSTATUSGENERALPURPOSE

Fields
Field Field Type Null Notes Description

COMMUNICATIONTYPECODE

tinyint

false

0

0=Marketing effort, 1=Appeal mailing, 2=Event invitation, 3=Acknowledgement, 4=Reminder

SEQUENCE

int

false

0

The sequence in which this letter will be processed.

NAME

nvarchar(100)

false

''

CHANNELCODE

tinyint

false

0

0=Mail, 1=Email, 2=Mail and Email

CHANNEL

nvarchar(14) (Computed)

true

Provides a translation for the 'CHANNELCODE' field.

CHANNELPREFERENCECODE

tinyint

false

0

0=Email, 1=Mail

CHANNELPREFERENCE

nvarchar(5) (Computed)

true

Provides a translation for the 'CHANNELPREFERENCECODE' field.

MAILCONTENTHTML

nvarchar(max)

false

''

EMAILCONTENTHTML

nvarchar(max)

false

''

EMAILSUBJECT

nvarchar(255)

false

''

EMAILFROMDISPLAYNAME

nvarchar(255)

false

''

EMAILFROMADDRESS

UDT_EMAILADDRESS

false

''

MARGINTOP

decimal(20, 4)

false

1

MARGINBOTTOM

decimal(20, 4)

false

1

MARGINLEFT

decimal(20, 4)

false

1

MARGINRIGHT

decimal(20, 4)

false

1

PAPERSIZECODE

tinyint

false

0

0=Letter, 1=A4

PAPERSIZE

nvarchar(6) (Computed)

true

Provides a translation for the 'PAPERSIZECODE' field.

DATEADDED

datetime

false

getdate()

Indicates the date this record was added.

DATECHANGED

datetime

false

getdate()

Indicates the date this record was last changed.

TS

timestamp

false

Timestamp.

TSLONG

bigint (Computed)

true

Numeric representation of the timestamp.

INCLUDEINACTIVE

bit

false

0

EMAILREPLYTOADDRESS

UDT_EMAILADDRESS

false

''

COMMUNICATIONTYPE

nvarchar(16) (Computed)

true

Provides a translation for the 'COMMUNICATIONTYPECODE' field.

OUTPUTTYPECODE

tinyint

false

0

OUTPUTTYPE

nvarchar(5) (Computed)

true

RUNSCHEDULED

bit

false

1

RUNNOW

bit

false

0

Indexes
Index Name Field(s) Unique Primary Clustered

IX_COMMUNICATIONLETTER_DATEADDED

DATEADDED

False

False

True

IX_COMMUNICATIONLETTER_DATECHANGED

DATECHANGED

False

False

False

IX_COMMUNICATIONLETTER_EMAILPACKAGEID

EMAILPACKAGEID

False

False

False

IX_COMMUNICATIONLETTER_EMAILSEGMENTID

EMAILSEGMENTID

False

False

False

IX_COMMUNICATIONLETTER_MAILPACKAGEID

MAILPACKAGEID

False

False

False

IX_COMMUNICATIONLETTER_MAILSEGMENTID

MAILSEGMENTID

False

False

False

IX_COMMUNICATIONLETTER_MKTASKLADDERID

MKTASKLADDERID

False

False

False

PK_COMMUNICATIONLETTER

ID

True

True

False

UIX_COMMUNICATIONLETTER_SEGMENTATIONID_NAME

SEGMENTATIONID

NAME

True

False

False

Triggers
Trigger Name Description

TR_COMMUNICATIONLETTER_AUDIT_UPDATE

TR_COMMUNICATIONLETTER_AUDIT_DELETE

Referenced by
Referenced by Field

COMMUNICATIONLETTERACTIVITYEXCLUSIONS

COMMUNICATIONLETTERID

COMMUNICATIONLETTEREXCLUDEDSOLICITCODE

COMMUNICATIONLETTERID

COMMUNICATIONLETTERSELECTION

COMMUNICATIONLETTERID