CORRESPONDENCEPROCESS

Contains information pertaining to the Correspondence process.

Primary Key

Primary Key Field Type
ID uniqueidentifier

Fields

Field Field Type Null Notes Description
NAME nvarchar(100) Default = '' The name of the parameter set.
DESCRIPTION nvarchar(255) Default = '' The description of the parameter set.
LETTERFILENAME nvarchar(255) Default = '' The original file name for the attachment.
LETTERFILE varbinary yes The actual file for the attachment.
LABELFILENAME nvarchar(255) Default = '' The original file name for the attachment.
LABELFILE varbinary yes The actual file for the attachment.
UPDATECONSTITUENTRECORD bit Default = 0 Update constituent record with correspondence details.
COMMENTS nvarchar(255) Default = '' Comments that will be inserted in the constituent's correspondence record.
CREATEOUTPUTIDSET bit Default = 0 Designates whether or not an ID set should be created as a result of the process.
OUTPUTIDSETNAME nvarchar(100) Default = '' The name of the output ID set to be created by the process.
OVERWRITEOUTPUTIDSET bit Default = 0 Designates whether or not to overwrite the output ID set if one with the same name already exists.
DATEADDED datetime Default = getdate() Indicates the date this record was added.
DATECHANGED datetime Default = getdate() Indicates the date this record was last changed.
TS timestamp Timestamp.
TSLONG bigint (Computed) yes CONVERT(bigint, TS) Numeric representation of the timestamp.
EXCLUDEMAIL bit Default = 0 Exclude constituents who prefer not to be contacted by mail.
EXCLUDEPHONE bit Default = 0 Exclude constituents who prefer not to be contacted by phone.
EXCLUDEEMAIL bit Default = 0 Exclude constituents who prefer not to be contacted by email.
CUSTOMPARAMETERDATAFORMITEM xml yes Custom parameters for the process.
HOUSEHOLDSINGLEMAIL bit Default = 0
ISACTIVE bit Default = 1 Indicates whether the process is active.
USEPRIMARYOVERHOUSEHOLD bit Default = 0

Foreign Keys

Foreign Key Field Type Null Notes Description
IDSETREGISTERID uniqueidentifier IDSETREGISTER.ID A foreign key to the ID set used to filter the records included in the post process.
QUERYVIEWID uniqueidentifier yes QUERYVIEWCATALOG.ID A foreign key to the query view used as output format for this letter.
CORRESPONDENCECODEID uniqueidentifier yes CORRESPONDENCECODE.ID A foreign key to the view to use as output for the parameter set.
ADDEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
CHANGEDBYID uniqueidentifier CHANGEAGENT.ID FK to CHANGEAGENT.
EXPORTDEFINITIONID uniqueidentifier yes EXPORTDEFINITION.ID FK to EXPORTDEFINITION

Indexes

Index Name Fields Unique Primary Clustered
IX_CORRESPONDENCEPROCESS_DATEADDED DATEADDED yes
IX_CORRESPONDENCEPROCESS_DATECHANGED DATECHANGED
IX_CORRESPONDENCEPROCESS_EXPORTDEFINITIONID EXPORTDEFINITIONID
IX_CORRESPONDENCEPROCESS_ID ID
IX_CORRESPONDENCEPROCESS_IDSETREGISTERID IDSETREGISTERID
IX_CORRESPONDENCEPROCESS_QUERYVIEWID QUERYVIEWID
PK_CORRESPONDENCEPROCESS ID yes yes
UC_CORRESPONDENCEPROCESS_NAME NAME yes

Triggers

Trigger Name Description
TR_CORRESPONDENCEPROCESS_DELETE_BUSINESSPROCESSINSTANCE
TR_CORRESPONDENCEPROCESS_AUDIT_UPDATE
TR_CORRESPONDENCEPROCESS_AUDIT_DELETE
TR_CORRESPONDENCEPROCESS_AUDIT_ETLDELETEDID
TR_CORRESPONDENCEPROCESS_INSERT

Referenced by

Referenced by Field
CORRESPONDENCEPROCESSEXPORTFORMAT PARAMETERSETID
CORRESPONDENCEPROCESSSTATUS PARAMETERSETID
MAILPREFERENCE CORRESPONDENCEID