Table

ElectronicMessageItems

Electronic message items

Holds the individual items inside electronic messages. The key is item ID, item type and processing. Each item has a date, status, source document and account, and a link to its message and to a source record such as an invoice journal.

Table name
ElectronicMessageItems
Module
Electronic messages
Table group
Worksheet
Table type
Regular
Data per company
Yes
Configuration key
None
Primary index
ItemIdx
Replacement key
ItemIdx
Key fields
ItemId, ItemType, Processing
Model
RegulatoryServices

Fields (19)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
ItemIdIdentifier of the message item.String (50)
EMItemId
NoElectronicMessageItemsEntityElectronicMessageItemsLogV2EntityElectronicMessageItemsLogDetailsEntityand 3 more
ItemTypePoints to the type of the message item.Int64
EMItemTypeRef
NoEMItemType.RecIdNone
ProcessingPoints to the processing the item belongs to.Int64
EMProcessingRef
NoElectronicMessageProcessing.RecIdNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
ItemDateDate of the message item.Date
EMItemDate
NoElectronicMessageItemsEntity
ItemSourceAccountAccount number linked to the source document.String (20)
AccountNum
NoNone
ItemSourceIdNumber of the source document.String (60)
EMItemSourceId
NoNone
ItemStatusPoints to the current status of the message item.Int64
EMItemStatusRef
NoElectronicMessageItemStatus.RecIdNone
MessageIdIdentifier of the electronic message that holds the item.String (36)
ElectronicMessageId
NoElectronicMessages.MessageIdNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
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
RefDataAreaIdCompany the source records come from.String
EMUserQueryDataAreaId
NoNone
RefRecIdSystem record ID of the source record, such as an invoice journal.Int64
RefRecId
NoNone
RefTableIdID of the table that the source record is in.Integer
RefTableId
NoNone
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TransDateTimeDate and time the item was transmitted.UtcDateTime
EMTransDateTime
NoElectronicMessageItemsEntity

Indexes (4)

Relations (11)

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

  • ElectronicMessageItemStatus → ElectronicMessageItemStatus

    Join on ItemStatus = ElectronicMessageItemStatus.RecId

    Many ElectronicMessageItems records → zero or one ElectronicMessageItemStatus record

  • ElectronicMessages → ElectronicMessages

    Join on MessageId = ElectronicMessages.MessageId

    Many ElectronicMessageItems records → zero or one ElectronicMessages record

  • EMItemType → EMItemType

    Join on ItemType = EMItemType.RecId

    Many ElectronicMessageItems records → zero or one EMItemType record

  • CustInvoiceJour → CustInvoiceJour

    Join on RefRecId = CustInvoiceJour.RecId, RefTableId = CustInvoiceJour.TableId

    Many ElectronicMessageItems records → exactly one CustInvoiceJour record

  • VendInvoiceJour → VendInvoiceJour

    Join on RefRecId = VendInvoiceJour.RecId, RefTableId = VendInvoiceJour.TableId

    Many ElectronicMessageItems records → exactly one VendInvoiceJour record

  • ProjInvoiceJour → ProjInvoiceJour

    Join on RefRecId = ProjInvoiceJour.RecId, RefTableId = ProjInvoiceJour.TableId

    Many ElectronicMessageItems records → exactly one ProjInvoiceJour record

  • ElectronicMessageProcessing → ElectronicMessageProcessing

    Join on Processing = ElectronicMessageProcessing.RecId

    Many ElectronicMessageItems records → zero or one ElectronicMessageProcessing record

  • ElectronicMessageStatus → ElectronicMessageStatus

    Join on ItemStatus = ElectronicMessageStatus.ItemStatus

    Many ElectronicMessageItems records → zero or one ElectronicMessageStatus record

  • CollectionsInCashReportLine_ES → CollectionsInCashReportLine_ES

    Join on RefTableId = CollectionsInCashReportLine_ES.TableId, RefRecId = CollectionsInCashReportLine_ES.RecId

    Many ElectronicMessageItems records → exactly one CollectionsInCashReportLine_ES record

  • InventTransferJour → InventTransferJour

    Join on RefRecId = InventTransferJour.RecId, RefTableId = InventTransferJour.TableId

    Many ElectronicMessageItems records → exactly one InventTransferJour record

  • CzCustAdvanceInvoiceTable → CzCustAdvanceInvoiceTable

    Join on RefRecId = CzCustAdvanceInvoiceTable.RecId, RefTableId = CzCustAdvanceInvoiceTable.TableId

    Many ElectronicMessageItems records → exactly one CzCustAdvanceInvoiceTable record

Get this data out

Tables are not exposed directly. These public entities read from ElectronicMessageItems; use one of them in Power BI, Power Platform or a data management project.

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

Email sales@drdynamics.co.uk