ALERTTYPE
Stores information about email alerts defined by the system.
Primary Key
| Primary Key |
Field Type |
| ID |
uniqueidentifier |
Fields
| Field |
Field Type |
Null |
Notes |
Description |
| NAME |
nvarchar(100) |
|
Default = '' |
The display name of the alert type. |
| EMAILSUBJECT |
nvarchar(255) |
|
Default = '' |
The subject line of the email that will be sent. |
| EMAILBODY |
nvarchar(max) |
|
Default = '' |
The body text of the email that will be sent. |
| 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. |
| EMAILBODYCONTEXTLINKPAGEID |
uniqueidentifier |
yes |
|
The ID of a page to construct a link to in the email body. |
| SECURITYCHECKFEATUREID |
uniqueidentifier |
yes |
|
A feature ID used to validate whether not to display the alert type in management lists (user or system). |
| SECURITYCHECKFEATURETYPECODE |
tinyint |
|
Default = 1 |
The type of the feature specified by SECURITYCHECKFEATUREID. |
| SECURITYCHECKFEATURETYPE |
nvarchar(16) (Computed) |
yes |
CASE [SECURITYCHECKFEATURETYPECODE] WHEN 1 THEN N'Data form' WHEN 2 THEN N'Record operation' WHEN 3 THEN N'Datalist' WHEN 4 THEN N'System privilege' WHEN 5 THEN N'Business process' END |
Provides a translation for the 'SECURITYCHECKFEATURETYPECODE' field. |
| TYPECODE |
tinyint |
|
Default = 1 |
1=System Alert, 2=Custom Alert |
| TYPE |
nvarchar(12) (Computed) |
yes |
CASE [TYPECODE] WHEN 1 THEN N'System Alert' WHEN 2 THEN N'Custom Alert' END |
Provides a translation for the 'TYPECODE' field. |
| INSTALLEDPRODUCTLIST |
xml |
yes |
|
List of optional products that must be installed for this alert type to be available. |
| ISSINGLEINSTANCE |
bit |
|
Default = 0 |
Indicates whether or not the alert type only supports a single instance (default = false). Only applicable for custom alerts. |
| EMAILBODYCONTEXTLINKTABID |
uniqueidentifier |
yes |
|
|
Foreign Keys
| Foreign Key |
Field Type |
Null |
Notes |
Description |
| ADDEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
| CHANGEDBYID |
uniqueidentifier |
|
CHANGEAGENT.ID
|
FK to CHANGEAGENT. |
| EMAILVIEWFORMINSTANCEID |
uniqueidentifier |
yes |
DATAFORMINSTANCECATALOG.ID
|
The ID of the view data form instance which will be used as a base for merge fields for the body. |
| DATALISTID |
uniqueidentifier |
yes |
DATALISTCATALOG.ID
|
The ID of the datalist which has feed alerts enabled. |
Indexes
| Index Name |
Fields |
Unique |
Primary |
Clustered |
| IX_ALERTTYPE_DATEADDED |
DATEADDED |
|
|
yes |
| IX_ALERTTYPE_DATECHANGED |
DATECHANGED |
|
|
|
| PK_ALERTTYPE |
ID |
yes |
yes |
|
| UC_ALERTTYPE_NAME |
NAME |
yes |
|
|
Triggers
Referenced by