Table
RetailEventNotificationLog
Commerce email notification log
Log of commerce email notifications. Each row stores the sender, receiver, subject, content, language and send time. It also shows whether the email was built and sent, with any error message. Rows can link to a sales order, packing slip, credit card transaction and other source records.
- Table name
RetailEventNotificationLog- Module
Commerce transactions and orders- Table group
Group- Table type
Regular- Data per company
Yes- Configuration key
Retail- Primary index
None- Replacement key
None- Key fields
None- Model
Foundation
Fields (17)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DefaultLanguageLanguage of the email, linked to a language record. | String (7)LanguageId | No | LanguageTable.LanguageId | None |
EmailConstructedSuccessfullyYes or no: whether the email was built successfully. | EnumRetailEventNotificationEmailConstructedSuccessfullyNoYes (enum) | No | None | |
EmailMessageBody text of the email. | String (-1)SysEmailContents | No | None | |
EmailSubjectSubject line of the email. | String (128)SysEmailSubject | No | None | |
ErrorMessageError text recorded when sending the email failed. | String (100)RetailEventNotificationErrorMessage | No | None | |
EventNotificationTypeType of notification, such as order confirmed or password reset. | EnumRetailEventNotificationType (enum) | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
ReceiverEmailAddressEmail address the message was sent to. | String (80)SysEmailAddress | No | 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 | |
RefRecIdRecord ID of the source record for the notification, for example a credit card transaction, packing slip or sales order. | Int64RefRecId | No | CreditCardAuthTrans.RecIdCustPackingSlipJour.RecIdSalesTable.RecIdShipCarrierStaging.RecIdWMSPickingRoute.RecId | None |
SalesOrderRecord ID of the related sales order. | Int64RefRecId | No | SalesTable.RecId | None |
SenderEmailAddressEmail address the message was sent from. | String (80)SysEmailAddress | No | None | |
SentDateTimeDate and time the email was sent. | UtcDateTimeUTCTimestamp | No | None | |
SentSuccessfullyYes or no: whether the email was sent without failure. | EnumRetailEmailSentSuccessfullyNoYes (enum) | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (2)
RecIdIdxUnique.
SentDateTimeSentSuccessfullySentDateTime,SentSuccessfully,DataAreaId,RecIdNot unique.
Relations (8)
Each relation joins RetailEventNotificationLog to another table on the fields shown.
CreditCardAuthTrans→CreditCardAuthTransJoin on
EventNotificationType = RetailEventNotificationType::PaymentFailed,RefRecId = CreditCardAuthTrans.RecIdMany RetailEventNotificationLog records → zero or one CreditCardAuthTrans record
CustPackingSlipJour→CustPackingSlipJourJoin on
EventNotificationType = RetailEventNotificationType::PackingComplete,RefRecId = CustPackingSlipJour.RecIdMany RetailEventNotificationLog records → zero or one CustPackingSlipJour record
LanguageTable→LanguageTableJoin on
DefaultLanguage = LanguageTable.LanguageId,LanguageTable.LabelFile = 1Many RetailEventNotificationLog records → exactly one LanguageTable record
MainSalesTable→SalesTableJoin on
SalesOrder = SalesTable.RecIdMany RetailEventNotificationLog records → exactly one SalesTable record
RefSalesTable→SalesTableJoin on
EventNotificationType = RetailEventNotificationType::OrderCreation,RefRecId = SalesTable.RecIdMany RetailEventNotificationLog records → zero or one SalesTable record
RefSalesTable2→SalesTableJoin on
EventNotificationType = RetailEventNotificationType::OrderConfirmation,RefRecId = SalesTable.RecIdMany RetailEventNotificationLog records → zero or one SalesTable record
ShipCarrierStaging→ShipCarrierStagingJoin on
EventNotificationType = RetailEventNotificationType::Shipment,RefRecId = ShipCarrierStaging.RecIdMany RetailEventNotificationLog records → zero or one ShipCarrierStaging record
WMSPickingRoute→WMSPickingRouteJoin on
EventNotificationType = RetailEventNotificationType::PickingComplete,RefRecId = WMSPickingRoute.RecIdMany RetailEventNotificationLog records → zero or one WMSPickingRoute record
Get this data out
No public entity reads from RetailEventNotificationLog. Its data is only reachable through the application, a custom entity or a database export.
Need help with RetailEventNotificationLog in a report, an integration or a migration? Talk to Dr Dynamics.