CONSTITUENTCORRESPONDENCE (4.0SP20)

This table contains information about constituent correspondence.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

CONSTITUENTID

uniqueidentifier

false

The constituent to which this correspondence belongs.

CORRESPONDENCECODEID

uniqueidentifier

true

The correspondence code of this correspondence.

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CORRESPONDENCEPROCESSRUNHISTORYID

uniqueidentifier

true

The correspondence process run that sent this correspondence.

Fields
Field Field Type Null Notes Description

DATESENT

datetime

false

Date this correspondence was sent.

COMMENTS

nvarchar(255)

false

''

Comments for this correspondence.

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_CONSTITUENTCORRESPONDENCE_CONSTITUENTID

CONSTITUENTID

False

False

False

IX_CONSTITUENTCORRESPONDENCE_DATEADDED

DATEADDED

False

False

True

IX_CONSTITUENTCORRESPONDENCE_DATECHANGED

DATECHANGED

False

False

False

PK_CONSTITUENTCORRESPONDENCE

ID

True

True

False

Triggers
Trigger Name Description

TR_CONSTITUENTCORRESPONDENCE_AUDIT_UPDATE

TR_CONSTITUENTCORRESPONDENCE_AUDIT_DELETE

TR_CONSTITUENTCORRESPONDENCE_TASYNC_I

TR_CONSTITUENTCORRESPONDENCE_TASYNC_U

TR_CONSTITUENTCORRESPONDENCE_TASYNC_D

Referenced by
Referenced by Field

CONSTITUENTCORRESPONDENCERESPONSE

CONSTITUENTCORRESPONDENCEID