APPEALMAILINGSETUPLETTER (4.0SP12)

This table holds letters associated with each appeal mailing.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

APPEALMAILINGSETUPID

uniqueidentifier

true

FK to APPEALMAILINGSETUP

MAILPACKAGEID

uniqueidentifier

true

FK to MKTPACKAGE

EMAILPACKAGEID

uniqueidentifier

true

FK to MKTPACKAGE

MAILSEGMENTID

uniqueidentifier

true

FK to MKTSEGMENT

EMAILSEGMENTID

uniqueidentifier

true

FK to MKTSEGMENT

CANNEDSELECTIONIDSETREGISTERID

uniqueidentifier

true

FK to IDSETREGISTER

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

MKTASKLADDERID

uniqueidentifier

true

FK to MKTASKLADDER

Fields
Field Field Type Null Notes Description

SEQUENCE

int

false

0

The sequence in which this letter will be processed.

NAME

nvarchar(100)

false

''

CHANNELCODE

tinyint

false

0

0=Email/Mail, 1=Email, 2=Mail

CHANNEL

nvarchar(10) (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.

SENDTOOPTIONCODE

tinyint

false

0

0=Send to, 1=Send to constituents in the following selection(s)

SENDTOOPTION

nvarchar(50) (Computed)

true

Provides a translation for the 'SENDTOOPTIONCODE' field.

CONSTITUENTINCLUDECODE

tinyint

false

0

0=All constituents, 1=Donors, 2=LYBUNTs, 3=SYBUNTs

CONSTITUENTINCLUDE

nvarchar(16) (Computed)

true

Provides a translation for the 'CONSTITUENTINCLUDECODE' field.

CONSIDERREVENUEHISTORY

bit

false

0

Indicates whether or not a constituent's revenue history should be considered when including/excluding constituents.

REVENUECRITERIACODE

tinyint

false

3

0=Average gift amount, 1=Largest gift amount, 2=Latest gift amount, 3=Total gift amount

REVENUECRITERIA

nvarchar(19) (Computed)

true

Provides a translation for the 'REVENUECRITERIACODE' field.

LOWREVENUEAMOUNT

money

false

0

HIGHREVENUEAMOUNT

money

false

0

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=Legal, 2=Executive, 3=A4, 4=A5, 5=B5 (JIS)

PAPERSIZE

nvarchar(9) (Computed)

true

Provides a translation for the 'PAPERSIZECODE' field.

PAPERWIDTH

decimal(20, 4)

false

0

PAPERHEIGHT

decimal(20, 4)

false

0

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.

Indexes
Index Name Field(s) Unique Primary Clustered

IX_APPEALMAILINGSETUPLETTER_APPEALMAILINGSETUPID

APPEALMAILINGSETUPID

False

False

False

IX_APPEALMAILINGSETUPLETTER_CANNEDSELECTIONIDSETREGISTERID

CANNEDSELECTIONIDSETREGISTERID

False

False

False

IX_APPEALMAILINGSETUPLETTER_DATEADDED

DATEADDED

False

False

True

IX_APPEALMAILINGSETUPLETTER_DATECHANGED

DATECHANGED

False

False

False

IX_APPEALMAILINGSETUPLETTER_EMAILPACKAGEID

EMAILPACKAGEID

False

False

False

IX_APPEALMAILINGSETUPLETTER_EMAILSEGMENTID

EMAILSEGMENTID

False

False

False

IX_APPEALMAILINGSETUPLETTER_MAILPACKAGEID

MAILPACKAGEID

False

False

False

IX_APPEALMAILINGSETUPLETTER_MAILSEGMENTID

MAILSEGMENTID

False

False

False

IX_APPEALMAILINGSETUPLETTER_MKTASKLADDERID

MKTASKLADDERID

False

False

False

PK_APPEALMAILINGSETUPLETTER

ID

True

True

False

UC_APPEALMAILINGSETUPLETTER_NAME

NAME

True

False

False

Triggers
Trigger Name Description

TR_APPEALMAILINGSETUPLETTER_DELETE

TR_APPEALMAILINGSETUPLETTER_AUDIT_UPDATE

TR_APPEALMAILINGSETUPLETTER_AUDIT_DELETE

Referenced by
Referenced by Field

APPEALMAILINGSETUPLETTERSELECTION

APPEALMAILINGSETUPLETTERID