| Primary Key | Field Type |
|---|---|
ID |
uniqueidentifier |
| Field | Field Type | Null | Notes | Description |
|---|---|---|---|---|
NAME |
nvarchar(100) | Default = '' | Name of the letter code. | |
DESCRIPTION |
nvarchar(255) | Default = '' | Description for the letter code. | |
WORDTEMPLATEFILENAME |
nvarchar(255) | Default = '' | Filename of the word template to use for this letter. | |
WORDFILE |
varbinary | ![]() |
The actual template file to use for this letter. | |
ISACTIVE |
bit | Default = 1 | Indicates whether or not the letter code is active. | |
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) | ![]() |
CONVERT(bigint, TS) | Numeric representation of the timestamp. |
CUSTOMPARAMETERDATAFORMITEM |
xml | ![]() |
Custom parameters for the letter code. | |
INCLUDESRECEIPT |
bit | Default = 0 | Indicates whether or not the marketing letter will serve as a receipt. | |
NETCOMMUNITYTEMPLATEID |
int | Default = 0 | The ID of the NetCommunity email message associated with this letter | |
NETCOMMUNITYDATASOURCEID |
int | Default = 0 | The ID of the NetCommunity data source associated with this letter | |
HTMLTEMPLATE |
nvarchar(max) | Default = '' | The html template used for this letter. | |
ISSYSTEM |
bit | Default = 0 | Flag used to hide letters meant for system use only. | |
MKTEXPORTDEFINITIONID |
uniqueidentifier (Computed) | ![]() |
dbo.[UFN_LETTERCODE_GETOBSOLETEMKTEXPORTDEFINITIONID]([EXPORTDEFINITIONID]) |
| Foreign Key | Field Type | Null | Notes | Description |
|---|---|---|---|---|
QUERYVIEWID |
uniqueidentifier | ![]() |
QUERYVIEWCATALOG.ID | A foreign key to the query view used for this letter. |
IDSETREGISTERID |
uniqueidentifier | ![]() |
IDSETREGISTER.ID | A foreign key to the ID set that will be associated with this letter code. |
ADDEDBYID |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
CHANGEDBYID |
uniqueidentifier | CHANGEAGENT.ID | FK to CHANGEAGENT. | |
SITEID |
uniqueidentifier | ![]() |
SITE.ID | The site to which this marketing letter belongs. |
EXPORTDEFINITIONID |
uniqueidentifier | ![]() |
EXPORTDEFINITION.ID | A foreign key to the export definition used for this letter. |
| Index Name | Field(s) | Unique | Primary | Clustered |
|---|---|---|---|---|
IX_LETTERCODE_DATEADDED |
DATEADDED | ![]() |
||
IX_LETTERCODE_DATECHANGED |
DATECHANGED | |||
PK_LETTERCODE |
ID | ![]() |
![]() |
|
UC_LETTERCODE_NAME |
NAME | ![]() |
| Trigger Name | Description |
|---|---|
TR_LETTERCODE_AUDIT_UPDATE |
|
TR_LETTERCODE_AUDIT_DELETE |
| Referenced by | Field |
|---|---|
ACKNOWLEDGEMENTPROCESS |
LETTERCODEID |
ASSIGNLETTERCODESPROCESSLETTERCODES |
LETTERCODEID |
BATCHMEMBERSHIPDUES |
LETTERCODEID |
BATCHREVENUE |
LETTERCODEID |
LETTERCODESITE |
LETTERCODEID |
MKTPACKAGE |
LETTERCODEID |
REVENUELETTER |
LETTERCODEID |

ID
NAME
TSLONG
QUERYVIEWID
IX_LETTERCODE_DATEADDED
IX_LETTERCODE_DATECHANGED