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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
RuleIdUnique ID of the alert rule. | String (20)EventRuleId | Yes | None | |
ActionNamesBinary list of event actions stored for the rule.low confidence | ContainerBlobdata | No | None | |
AlertFieldIdID of the field that the alert watches. | IntegerFieldId | No | None | |
AlertFieldLabelLabel of the field that the alert watches. | String (250)EventFieldLabel | No | None | |
AlertInstanceRelationTypeInstance relation type for the alert table. The exact meaning is not stated in the metadata.low confidence | Int64EventInstanceRelationType | No | None | |
AlertQbdsNoNumber of the data source used for the alert.low confidence | IntegerEventDataSourceNo | No | None | |
AlertTableIdID of the table that the alert refers to. | IntegerRefTableId | No | None | |
CompanyIdCompany that the rule is set for. No label is given.low confidence | StringSelectableDataArea | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
DeleteRefRecIdSystem record ID of the record linked to a delete event.low confidence | Int64EventRefRecId | No | Common.RecId | None |
EmailRecipientsEmail recipients for the alert. | String (255)SysEmailRecipients | No | None | |
EnabledShows whether the rule is switched on. | EnumNoYesIdNoYes (enum) | No | None | |
EnabledForExternalShows whether the alert is sent to external recipients. | EnumEventEnabledForExternalNoYes (enum) | No | None | |
FormNameName of a form linked to the rule. No label is given.low confidence | StringFormName | No | None | |
GlobalRuleShows whether the rule applies across the whole organisation. | EnumEventIsGlobalRuleNoYes (enum) | No | None | |
IsAggregatedShows whether the alert field is an aggregated field. | EnumEventIsAggregatedNoYes (enum) | No | None | |
MenuItemNameName of the menu item linked to the rule. No label is given.low confidence | StringMenuItemName | No | None | |
MenuItemTypeType of menu item linked to the rule. No label is given.low confidence | EnumMenuItemType (enum) | No | None | |
MessageFree-text message of the alert. | String (-1)EventMessage | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PrimInstanceRelationTypeInstance relation type for the primary table. The exact meaning is not stated in the metadata.low confidence | Int64EventInstanceRelationType | No | None | |
PrimTableIdID of the primary table of the rule. | IntegerRefTableId | Yes | None | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
RuleConditionCondition type for the rule: All, Current or Custom. | EnumEventRuleCondition (enum) | No | None | |
SendAlertEmailAnother flag showing whether an alert email is sent.low confidence | EnumNoYesIdNoYes (enum) | No | None | |
SendEmailShows whether an email is sent for the alert. | EnumNoYes (enum) | No | None | |
ShowPopupShows whether a pop-up is displayed for the alert. | EnumNoYes (enum) | No | None | |
SubjectSubject text of the alert. | String (128)EventSubject | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TypeIdID of the event type used by the rule. | IntegerEventTypeId | Yes | None | |
TypeTriggerWhat triggers the alert: a field change, a due date, a record insert or a record delete. | EnumEventTypeTrigger (enum) | No | None | |
UntilWhether the rule has no end date or runs until an end date. | EnumEventUntil (enum) | No | None | |
UntilDateEnd date of the rule, used when an end date applies. | DateEventUntilDate | No | None | |
UserIdUser linked to the rule. No label is given.low confidence | StringUserId | Yes | None |
Indexes (3)
RuleIdxPrimary indexReplacement keyUnique, alternate key.
UserIdxNot unique.
AlertTableIdIdxNot unique.
Relations (1)
Each relation joins EventRule to another table on the fields shown.
DeleteRefRecId→CommonJoin on
DeleteRefRecId = Common.RecIdMany 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.