Table

RetailXZReportTable

End of day report

Holds end of day reports (X reports and Z reports) for retail stores. Each record is identified by store, register, shift, report type and report ID. The report content is saved as XML, and the record links to the store, register, shift and retail channel.

Table name
RetailXZReportTable
Module
Commerce transactions and orders
Table group
WorksheetHeader
Table type
Regular
Data per company
Yes
Configuration key
Retail
Primary index
ReportIdx
Replacement key
None
Key fields
StoreId, TerminalId, BatchId, ReportType, ReportId
Model
Foundation

Fields (15)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
StoreIdNumber of the store that the report was created for.String
RetailStoreId
YesRetailStoreTable.StoreNumberRetailXZReportEntityRetailXZReportTableEntity
TerminalIdNumber of the POS register that the report relates to.String
RetailTerminalId
YesRetailTerminalTable.terminalIdRetailXZReportEntityRetailXZReportTableEntity
BatchIdID of the shift that the report covers. It is matched with the shift on store and register as well.Int64
RetailPosBatchID
YesRetailPosBatchTable.BatchIDRetailXZReportEntityRetailXZReportTableEntity
ReportTypeTells whether the report is an X report or a Z report.Enum
RetailXZReportType (enum)
NoRetailXZReportEntityRetailXZReportTableEntity
ReportIdNumber that identifies the report.Int64
RetailXZReportId
YesRetailXZReportEntityRetailXZReportTableEntity
ChannelSystem record ID of the retail channel. It points to a record in RetailChannelTable.Int64
RefRecId
NoRetailChannelTable.RecIdRetailXZReportEntityRetailXZReportTableEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
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
ReplicationCounterFromOriginCounter value used to track replication of the record.Integer
RetailReplicationCounter
NoRetailXZReportTableEntity
ReportDateTimeDate and time at which the report was created.UtcDateTimeNoRetailXZReportEntityRetailXZReportTableEntity
ReportValueReport content stored as XML text.String (-1)NoRetailXZReportEntityRetailXZReportTableEntity
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

Indexes (1)

Relations (4)

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

  • RetailStoreTable → RetailStoreTable

    Join on StoreId = RetailStoreTable.StoreNumber

    Many RetailXZReportTable records → exactly one RetailStoreTable record

  • RetailTerminalTable → RetailTerminalTable

    Join on TerminalId = RetailTerminalTable.terminalId

    Many RetailXZReportTable records → exactly one RetailTerminalTable record

  • RetailChannelTable → RetailChannelTable

    Join on Channel = RetailChannelTable.RecId

    Many RetailXZReportTable records → zero or one RetailChannelTable record

  • RetailPosBatchTable → RetailPosBatchTable

    Join on BatchId = RetailPosBatchTable.BatchID, TerminalId = RetailPosBatchTable.TerminalId, StoreId = RetailPosBatchTable.StoreId

    Many RetailXZReportTable records → exactly one RetailPosBatchTable record

Get this data out

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

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

Email sales@drdynamics.co.uk