EXCHANGEEMAILBATCH (4.0SP14)

Batch table containing Exchange Email records.

Primary Key
Primary Key Field Type

ID

uniqueidentifier

Foreign Key Fields
Foreign Key Field Type Null Notes Description

BATCHID

uniqueidentifier

false

Indicates the batch to which this record belongs.

CONSTITUENTID

uniqueidentifier

false

Indicates the constituent to whom this Email is associated.

USERID

uniqueidentifier

false

Indicates the AppUser to whom this Email's mailbox is associated.

INTERACTIONTYPECODEID

uniqueidentifier

false

Indicates the type code for this interaction.

ADDEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

CHANGEDBYID

uniqueidentifier

false

FK to CHANGEAGENT.

Fields
Field Field Type Null Notes Description

DATESENT

datetime

false

Indicates the date that the Email was sent.

TIMESENT

UDT_HOURMINUTE

false

''

Indicates the time that the Email was sent.

SUBJECT

nvarchar(256)

false

''

The subject of the message.

BODY

nvarchar(max)

false

''

The body of the Email message.

ADDASINTERACTION

bit

false

1

Add message as interaction

SEQUENCE

int

false

0

Indicates the sequence of this record in the batch.

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_EXCHANGEEMAILBATCH_BATCHID

BATCHID

False

False

False

IX_EXCHANGEEMAILBATCH_CONSTITUENTID

CONSTITUENTID

False

False

False

IX_EXCHANGEEMAILBATCH_DATEADDED

DATEADDED

False

False

True

IX_EXCHANGEEMAILBATCH_DATECHANGED

DATECHANGED

False

False

False

IX_EXCHANGEEMAILBATCH_INTERACTIONTYPECODEID

INTERACTIONTYPECODEID

False

False

False

IX_EXCHANGEEMAILBATCH_USERID

USERID

False

False

False

PK_EXCHANGEEMAILBATCH

ID

True

True

False

Triggers
Trigger Name Description

TR_EXCHANGEEMAILBATCH_AUDIT_UPDATE

TR_EXCHANGEEMAILBATCH_AUDIT_DELETE

Referenced by
Referenced by Field

EXCHANGEEMAILBATCHBATCHSYSTEMMESSAGES

EXCHANGEEMAILBATCHID

EXCHANGEEMAILBATCHBATCHUSERMESSAGE

ID

EXCHANGEEMAILBATCHSITE

EXCHANGEEMAILBATCHID