Data entity

RetailStoreWorkShiftTranEntity

Holds work shift transaction records, keyed by shift, shift date, statement code and operating unit number. It is similar to the other store work shift transactions entity but uses the operating unit number instead of the store number. It includes start and end dates and times, the statement method and status.

Entity name
RetailStoreWorkShiftTranEntity
Public entity name
RetailStoreWorkShiftTran
OData collection
RetailStoreWorkShiftTrans
Category
Not set
Module
Commerce employees
Read-only
No
Data management enabled
Yes
Configuration key
Retail
Keys
ShiftId, ShiftDate, StatementCode, OMOperatingUnitNumber
Staging table
RetailStoreWorkShiftTranStaging

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/RetailStoreWorkShiftTrans
Dataverse virtual table
mserp_retailstoreworkshifttranentity. 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

  • RetailStoreWorkShiftTrans · root
  • RetailStoreTable · OuterJoin to RetailStoreWorkShiftTrans · read-only
  • OMOperatingUnit · OuterJoin to RetailStoreTable · read-only

Fields (11)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
ClosingDateDate the line ended.Date
RetailEndingDate
NoYesRetailStoreWorkShiftTrans.closingDate
ClosingTimeTime the line ended.Time
RetailEndingTime
NoYesRetailStoreWorkShiftTrans.closingTime
OpeningDateDate the line started.Date
RetailStartingDate
NoYesRetailStoreWorkShiftTrans.openingDate
OpeningTimeTime the line started.Time
RetailStartingTime
NoYesRetailStoreWorkShiftTrans.openingTime
ShiftDateDate of the shift, linked to the work shift table.Date
RetailShiftDate
YesYesRetailStoreWorkShiftTrans.shiftDate
ShiftIdID of the work shift, linked to the work shift setup of the store.String (1)
RetailWorkShiftId
YesYesRetailWorkShiftSetup.workShiftIdRetailStoreWorkShiftTrans.shiftId
StatementCodeCode of the statement, which refers to a staff member or a POS terminal.String (25)
RetailStatementCode
YesYesRetailStaffTable.staffIdRetailTerminalTable.terminalIdRetailStoreWorkShiftTrans.statementCode
StatementMethodWay the statement is grouped: by operator ID, POS terminal, total or shift.Enum
RetailStatementMethod
RetailStaffTerminalTotal
  • Staff 0
  • Terminal 1
  • Total 2
  • Shift 3
NoYesRetailStoreWorkShiftTrans.statementMethod
StatusStatus of the line: open, closed or posted.Enum
RetailWorkShiftStatus
  • Open 0
  • Closed 1
  • Posted 2
NoYesRetailStoreWorkShiftTrans.status
StoreRecIdPoints to the store the line belongs to.Int64
RefRecId
NoNo (private)RetailStoreTable.RecIdRetailStoreWorkShiftTrans.StoreRecId
OMOperatingUnitNumberThe number that identifies the operating unit.String (30)
OMOperatingUnitNumber
YesYesOMOperatingUnit.OMOperatingUnitNumber

Foreign keys (4)

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.

  • ShiftId → RetailWorkShiftSetup.workShiftId (key of RetailWorkShiftSetup)

    Join on all of: ShiftId = RetailWorkShiftSetup.workShiftId, StoreRecId = RetailWorkShiftSetup.StoreRecId

    One or more RetailStoreWorkShiftTrans records → exactly one RetailWorkShiftSetup record

    RetailWorkShiftSetup details: see RetailWorkShiftSetup2Entity, RetailWorkShiftSetupEntity

  • StatementCode → RetailStaffTable.staffId (key of RetailStaffTable)

    Relation also requires statementMethod = RetailStaffTerminalTotal::Staff.

    Many RetailStoreWorkShiftTrans records → zero or one RetailStaffTable record

    RetailStaffTable details: see RetailStaffEntity, RetailTillLayoutStaffEntity

  • StatementCode → RetailTerminalTable.terminalId (key of RetailTerminalTable)

    Many RetailStoreWorkShiftTrans records → exactly one RetailTerminalTable record

    RetailTerminalTable details: see RetailTerminalEntity, DimAttributeRetailTerminalEntity

  • StoreRecId → RetailStoreTable.RecId (key of RetailStoreTable)

    One or more RetailStoreWorkShiftTrans records → exactly one RetailStoreTable record

    RetailStoreTable details: see RetailChannelEntity, RetailStoreEntity, RetailTerminalEntity

Need help with RetailStoreWorkShiftTranEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk