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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
StoreIdNumber of the store that the report was created for. | StringRetailStoreId | Yes | RetailStoreTable.StoreNumber | RetailXZReportEntityRetailXZReportTableEntity |
TerminalIdNumber of the POS register that the report relates to. | StringRetailTerminalId | Yes | RetailTerminalTable.terminalId | RetailXZReportEntityRetailXZReportTableEntity |
BatchIdID of the shift that the report covers. It is matched with the shift on store and register as well. | Int64RetailPosBatchID | Yes | RetailPosBatchTable.BatchID | RetailXZReportEntityRetailXZReportTableEntity |
ReportTypeTells whether the report is an X report or a Z report. | EnumRetailXZReportType (enum) | No | RetailXZReportEntityRetailXZReportTableEntity | |
ReportIdNumber that identifies the report. | Int64RetailXZReportId | Yes | RetailXZReportEntityRetailXZReportTableEntity | |
ChannelSystem record ID of the retail channel. It points to a record in RetailChannelTable. | Int64RefRecId | No | RetailChannelTable.RecId | RetailXZReportEntityRetailXZReportTableEntity |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | 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 | |
ReplicationCounterFromOriginCounter value used to track replication of the record. | IntegerRetailReplicationCounter | No | RetailXZReportTableEntity | |
ReportDateTimeDate and time at which the report was created. | UtcDateTime | No | RetailXZReportEntityRetailXZReportTableEntity | |
ReportValueReport content stored as XML text. | String (-1) | No | RetailXZReportEntityRetailXZReportTableEntity | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (1)
ReportIdxPrimary indexStoreId,TerminalId,BatchId,ReportType,ReportIdUnique.
Relations (4)
Each relation joins RetailXZReportTable to another table on the fields shown.
RetailStoreTable→RetailStoreTableJoin on
StoreId = RetailStoreTable.StoreNumberMany RetailXZReportTable records → exactly one RetailStoreTable record
RetailTerminalTable→RetailTerminalTableJoin on
TerminalId = RetailTerminalTable.terminalIdMany RetailXZReportTable records → exactly one RetailTerminalTable record
RetailChannelTable→RetailChannelTableJoin on
Channel = RetailChannelTable.RecIdMany RetailXZReportTable records → zero or one RetailChannelTable record
RetailPosBatchTable→RetailPosBatchTableJoin on
BatchId = RetailPosBatchTable.BatchID,TerminalId = RetailPosBatchTable.TerminalId,StoreId = RetailPosBatchTable.StoreIdMany 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.
RetailXZReportEntity· 8 fields from this tableRetailXZReportTableEntity· 9 fields from this table
Need help with RetailXZReportTable in a report, an integration or a migration? Talk to Dr Dynamics.