Data entity
RetailLogEntity
Stores retail log entries, such as the log level, log text, event type, date and time, and duration. Entries are linked to an operating unit, store and register, and can also hold operator, shift and customer details. The key includes the log ID and how the entry was uploaded.
- Entity name
RetailLogEntity- Public entity name
Log- OData collection
Logs- Category
Transaction- Module
Other (no module in the metadata)- Read-only
No- Data management enabled
Yes- Configuration key
Retail- Keys
OMOperatingUnit_PartyNumber, StoreId, terminalId, RetailLogId, UploadType- Staging table
RetailLogStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/Logs- Dataverse virtual table
mserp_retaillogentity. 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
RetailLog· rootRetailChannelTable· OuterJoin toRetailLog· read-onlyOMOperatingUnit· OuterJoin toRetailChannelTable· read-onlyRetailOnlineChannelTable· Derived toRetailChannelTableRetailDirectSalesChannel· Derived toRetailChannelTableRetailMCRChannelTable· Derived toRetailChannelTableRetailStoreTable· Derived toRetailChannelTable
Fields (23)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
CodeUnitName of the code unit that wrote the log entry. | String (100)RetailCodeUnit | No | Yes | RetailLog.CodeUnit | |
durationInMilliSecHow long the logged action took. The label says ticks but the field name says milliseconds, so the unit is unclear.low confidence | IntegerRetailDurationInMilliSec | No | Yes | RetailLog.durationInMilliSec | |
IdNumeric ID labelled as a receipt format. Its exact meaning is not clear from the metadata.low confidence | IntegerRetailLogId | Yes | Yes | RetailLog.Id | |
LogDateDate of the log entry. | DateRetailDateEx5 | No | Yes | RetailLog.LogDate | |
LogTimeTime of the log entry. | TimeRetailLogTime | No | Yes | RetailLog.LogTime | |
LogLevelSeverity of the entry: trace, debug or error. | EnumRetailLogLevel
| No | Yes | RetailLog.LogLevel | |
LogStringFree-text content of the log message. | String (-1)RetailLogString | No | Yes | RetailLog.LogString | |
OriginNumber of the location that the entry came from. | String (50)RetailConnDistributionLocationId | No | Yes | RetailLog.Origin | |
replicationCounterFromOriginCounter value from the origin location, used to track replication of the entry. | IntegerRetailReplicationCounter | No | Yes | RetailLog.replicationCounterFromOrigin | |
RetailLogIdIdentifier of the log entry. It forms part of the table key. | Int64RetailLogIdentifier | Yes | Yes | RetailLog.RetailLogId | |
StoreIdStore where the entry was logged. Points to the store record. | StringRetailStoreId | Yes | Yes | RetailStoreTable.StoreNumber | RetailLog.StoreId |
terminalIdPOS register where the entry was logged. Points to the register record. | StringRetailTerminalId | Yes | Yes | RetailTerminalTable.terminalId | RetailLog.terminalId |
ChannelIdRetail channel the entry belongs to. Points to the channel by system record ID. | Int64RefRecId | No | No (private) | RetailChannelTable.RecId | RetailLog.ChannelId |
EventTypeKind of audited event, such as logon, logoff, manager override, item voided or price check. | Enum
| No | Yes | RetailLog.EventType | |
UploadTypeHow the entry reached the back office: async service, real-time service or back office. | Enum
| No | Yes | RetailLog.UploadType | |
StaffIdID of the operator linked to the entry. | String (25)RetailStaffId | No | Yes | RetailLog.StaffId | |
BatchIdShift the entry belongs to. Points to the POS shift record for the same store and register. | Int64RetailPosBatchID | Yes | Yes | RetailPosBatchTable.BatchID | RetailLog.BatchId |
ClosedBatchIdShift ID of a closed shift. The metadata gives no relation, so the exact use is unclear.low confidence | Int64RetailPosBatchID | No | Yes | RetailLog.ClosedBatchId | |
CustAccountCustomer account linked to the entry. | String (20)CustAccount | No | Yes | RetailLog.CustAccount | |
ContactPersonIdID of the customer contact person linked to the entry. | String (20)ContactPersonId | No | Yes | RetailLog.ContactPersonId | |
EntityReferenceIdIdentifier of the related entity that the log entry refers to. | String (40)RetailLogEntityReferenceId | No | Yes | RetailLog.EntityReferenceId | |
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 RetailLog records → exactly one RetailStoreTable record
RetailStoreTable details: see RetailChannelEntity, RetailStoreEntity, RetailTerminalEntity
terminalId→RetailTerminalTable.terminalId(key of RetailTerminalTable)Many RetailLog records → exactly one RetailTerminalTable record
RetailTerminalTable details: see RetailTerminalEntity, DimAttributeRetailTerminalEntity
ChannelId→RetailChannelTable.RecId(key of RetailChannelTable)Many RetailLog records → exactly one RetailChannelTable record
RetailChannelTable details: see RetailChannelEntity, RetailCallCenterEntity, RetailOnlineChannelEntity
BatchId→RetailPosBatchTable.BatchID(key of RetailPosBatchTable)Join on all of:
BatchId=RetailPosBatchTable.BatchID,TerminalId(table field, not in this entity) =RetailPosBatchTable.TerminalId,StoreId=RetailPosBatchTable.StoreIdMany RetailLog records → exactly one RetailPosBatchTable record
RetailPosBatchTable details: see RetailPosBatchTableEntity, RetailPosBatchEntity, RetailPosBatch2Entity
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 RetailLogEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.