Data entity
RetailXZReportTableEntity
Holds end of day reports (X and Z reports) from retail registers. Each record has the report type, report ID, report date and time, and the report content as XML. It is identified by store, register, shift ID, report type and report ID.
- Entity name
RetailXZReportTableEntity- Public entity name
XZReportTable- OData collection
XZReportTables- Category
Document- Module
Other (no module in the metadata)- Read-only
No- Data management enabled
Yes- Configuration key
Retail- Keys
StoreId, TerminalId, BatchId, ReportType, ReportId- Staging table
RetailXZReportTableStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/XZReportTables- Dataverse virtual table
mserp_retailxzreporttableentity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.- Data management
- Enabled: you can use it in import and export projects.
Data sources
RetailXZReportTable· rootRetailChannelTable· OuterJoin toRetailXZReportTable· read-onlyOMOperatingUnit· OuterJoin toRetailChannelTable· read-onlyRetailOnlineChannelTable· Derived toRetailChannelTableRetailStoreTable· Derived toRetailChannelTableRetailMCRChannelTable· Derived toRetailChannelTableRetailDirectSalesChannel· Derived toRetailChannelTable
Fields (11)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
StoreIdNumber of the store that the report was created for. | StringRetailStoreId | Yes | Yes | RetailStoreTable.StoreNumber | RetailXZReportTable.StoreId |
TerminalIdNumber of the POS register that the report relates to. | StringRetailTerminalId | Yes | Yes | RetailTerminalTable.terminalId | RetailXZReportTable.TerminalId |
BatchIdID of the shift that the report covers. It is matched with the shift on store and register as well. | Int64RetailPosBatchID | Yes | Yes | RetailPosBatchTable.BatchID | RetailXZReportTable.BatchId |
ReportTypeTells whether the report is an X report or a Z report. | Enum
| No | Yes | RetailXZReportTable.ReportType | |
ChannelSystem record ID of the retail channel. It points to a record in RetailChannelTable. | Int64RefRecId | No | No (private) | RetailChannelTable.RecId | RetailXZReportTable.Channel |
ReportIdNumber that identifies the report. | Int64RetailXZReportId | Yes | Yes | RetailXZReportTable.ReportId | |
ReportDateTimeDate and time at which the report was created. | UtcDateTime | No | Yes | RetailXZReportTable.ReportDateTime | |
ReportValueReport content stored as XML text. | String (-1) | No | Yes | RetailXZReportTable.ReportValue | |
ReplicationCounterFromOriginCounter value used to track replication of the record. | IntegerRetailReplicationCounter | No | Yes | RetailXZReportTable.ReplicationCounterFromOrigin | |
RetailChannelTable_OMOperatingUnitIDOperating unit that the channel is based on. It is the key of the record. | Int64RefRecId | No | No (private) | OMOperatingUnit.RecId | RetailChannelTable.OMOperatingUnitID |
OMOperatingUnit_PartyNumberUnique ID of the party. It is the key of the table. | String (40)DirPartyNumber | Yes | Yes | DirPartyTable.PartyNumber |
Foreign keys (5)
Each field below points to the key of another table. Join on it in Power BI, or follow the link to an entity that exposes that table.
StoreId→RetailStoreTable.StoreNumber(key of RetailStoreTable)Many RetailXZReportTable records → exactly one RetailStoreTable record
RetailStoreTable details: see RetailChannelEntity, RetailStoreEntity, RetailTerminalEntity
TerminalId→RetailTerminalTable.terminalId(key of RetailTerminalTable)Many RetailXZReportTable records → exactly one RetailTerminalTable record
RetailTerminalTable details: see RetailTerminalEntity, DimAttributeRetailTerminalEntity
BatchId→RetailPosBatchTable.BatchID(key of RetailPosBatchTable)Join on all of:
BatchId=RetailPosBatchTable.BatchID,TerminalId=RetailPosBatchTable.TerminalId,StoreId=RetailPosBatchTable.StoreIdMany RetailXZReportTable records → exactly one RetailPosBatchTable record
RetailPosBatchTable details: see RetailPosBatchTableEntity, RetailPosBatchEntity, RetailPosBatch2Entity
Channel→RetailChannelTable.RecId(key of RetailChannelTable)Many RetailXZReportTable records → zero or one RetailChannelTable record
RetailChannelTable details: see RetailChannelEntity, RetailCallCenterEntity, RetailOnlineChannelEntity
RetailChannelTable_OMOperatingUnitID→OMOperatingUnit.RecId(key of OMOperatingUnit)Zero or one RetailChannelTable record → exactly one OMOperatingUnit record
OMOperatingUnit details: see ACOCostCenterTypeEntity, OMOperatingUnitEntity, AssetPackingSlipEntity
Need help with RetailXZReportTableEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.