Data entity

RetailStoreWorkShiftTran2Entity

Holds work shift transaction records for stores. Each record is identified by the shift, shift date, statement code and store number. It includes start and end dates and times, the statement method and status.

Entity name
RetailStoreWorkShiftTran2Entity
Public entity name
RetailStoreWorkShiftTran2
OData collection
RetailStoreWorkShiftTrans2
Category
Not set
Module
Commerce employees
Read-only
No
Data management enabled
Yes
Configuration key
Retail
Keys
ShiftId, ShiftDate, StatementCode, StoreNumber
Staging table
RetailStoreWorkShiftTran2Staging

Use it in Power BI and Power Platform

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

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
StoreNumberStore number that identifies the store.String
RetailStoreId
YesYesRetailStoreTable.StoreNumber

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 RetailStoreWorkShiftTran2Entity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk