Table

EventRule

Alerts - rule

Defines an alert rule, identified by a rule ID. It records the table and field being watched, the trigger type, the message and subject, and whether the alert shows a pop-up or sends email. It also holds the end date setting and whether the rule applies organisation-wide.

Table name
EventRule
Module
System administration
Table group
Main
Table type
Regular
Data per company
No
Configuration key
Event
Primary index
RuleIdx
Replacement key
RuleIdx
Key fields
RuleId
Model
ApplicationFoundation

Fields (35)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
RuleIdUnique ID of the alert rule.String (20)
EventRuleId
YesNone
ActionNamesBinary list of event actions stored for the rule.low confidenceContainer
Blobdata
NoNone
AlertFieldIdID of the field that the alert watches.Integer
FieldId
NoNone
AlertFieldLabelLabel of the field that the alert watches.String (250)
EventFieldLabel
NoNone
AlertInstanceRelationTypeInstance relation type for the alert table. The exact meaning is not stated in the metadata.low confidenceInt64
EventInstanceRelationType
NoNone
AlertQbdsNoNumber of the data source used for the alert.low confidenceInteger
EventDataSourceNo
NoNone
AlertTableIdID of the table that the alert refers to.Integer
RefTableId
NoNone
CompanyIdCompany that the rule is set for. No label is given.low confidenceString
SelectableDataArea
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
DeleteRefRecIdSystem record ID of the record linked to a delete event.low confidenceInt64
EventRefRecId
NoCommon.RecIdNone
EmailRecipientsEmail recipients for the alert.String (255)
SysEmailRecipients
NoNone
EnabledShows whether the rule is switched on.Enum
NoYesId
NoYes (enum)
NoNone
EnabledForExternalShows whether the alert is sent to external recipients.Enum
EventEnabledForExternal
NoYes (enum)
NoNone
FormNameName of a form linked to the rule. No label is given.low confidenceString
FormName
NoNone
GlobalRuleShows whether the rule applies across the whole organisation.Enum
EventIsGlobalRule
NoYes (enum)
NoNone
IsAggregatedShows whether the alert field is an aggregated field.Enum
EventIsAggregated
NoYes (enum)
NoNone
MenuItemNameName of the menu item linked to the rule. No label is given.low confidenceString
MenuItemName
NoNone
MenuItemTypeType of menu item linked to the rule. No label is given.low confidenceEnum
MenuItemType (enum)
NoNone
MessageFree-text message of the alert.String (-1)
EventMessage
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PrimInstanceRelationTypeInstance relation type for the primary table. The exact meaning is not stated in the metadata.low confidenceInt64
EventInstanceRelationType
NoNone
PrimTableIdID of the primary table of the rule.Integer
RefTableId
YesNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
RuleConditionCondition type for the rule: All, Current or Custom.Enum
EventRuleCondition (enum)
NoNone
SendAlertEmailAnother flag showing whether an alert email is sent.low confidenceEnum
NoYesId
NoYes (enum)
NoNone
SendEmailShows whether an email is sent for the alert.Enum
NoYes (enum)
NoNone
ShowPopupShows whether a pop-up is displayed for the alert.Enum
NoYes (enum)
NoNone
SubjectSubject text of the alert.String (128)
EventSubject
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TypeIdID of the event type used by the rule.Integer
EventTypeId
YesNone
TypeTriggerWhat triggers the alert: a field change, a due date, a record insert or a record delete.Enum
EventTypeTrigger (enum)
NoNone
UntilWhether the rule has no end date or runs until an end date.Enum
EventUntil (enum)
NoNone
UntilDateEnd date of the rule, used when an end date applies.Date
EventUntilDate
NoNone
UserIdUser linked to the rule. No label is given.low confidenceString
UserId
YesNone

Indexes (3)

Relations (1)

Each relation joins EventRule to another table on the fields shown.

  • DeleteRefRecId → Common

    Join on DeleteRefRecId = Common.RecId

    Many EventRule records → zero or one Common record

Get this data out

No public entity reads from EventRule. Its data is only reachable through the application, a custom entity or a database export.

Need help with EventRule in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk