Table

RetailStoreWorkShiftTable

Work shift table

Holds work shifts for stores. The key is the store, shift date and shift ID. Each record has start and end dates and times, a status and a statement number.

Table name
RetailStoreWorkShiftTable
Module
Commerce employees
Table group
WorksheetHeader
Table type
Regular
Data per company
Yes
Configuration key
Retail
Primary index
storeShiftDateShiftId
Replacement key
None
Key fields
StoreRecId, shiftDate, shiftId
Model
Foundation

Fields (16)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
StoreRecIdPoints to the store the shift belongs to.Int64
RefRecId
NoRetailStoreTable.RecIdNone
shiftDateDate of the shift.Date
RetailShiftDate
YesRetailStoreWorkShiftEntity
shiftIdID of the work shift, linked to the work shift setup of the store.String (1)
RetailWorkShiftId
YesRetailWorkShiftSetup.workShiftIdRetailStoreWorkShiftEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
endingDateDate the shift ended.Date
RetailEndingDate
NoRetailStoreWorkShiftEntity
endingTimeTime the shift ended.Time
RetailEndingTime
NoRetailStoreWorkShiftEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
replicationCounterCounter used for replication of the record.Integer
RetailReplicationCounter
NoRetailStoreWorkShiftEntity
startingDateDate the shift started.Date
RetailStartingDate
NoRetailStoreWorkShiftEntity
startingTimeTime the shift started.Time
RetailStartingTime
NoRetailStoreWorkShiftEntity
statementIdNumber of the statement linked to the shift.String (20)
RetailStatementId
NoRetailStatementJour.statementIdRetailStatementTable.statementIdRetailStoreWorkShiftEntity
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
workShiftStatusStatus of the shift: open, closed or posted.Enum
RetailWorkShiftStatus (enum)
NoRetailStoreWorkShiftEntity

Indexes (3)

Relations (4)

Each relation joins RetailStoreWorkShiftTable to another table on the fields shown.

  • RetailStatementJour → RetailStatementJour

    Join on workShiftStatus = RetailWorkShiftStatus::Posted, statementId = RetailStatementJour.statementId

    Many RetailStoreWorkShiftTable records → zero or one RetailStatementJour record

  • RetailStatementTable → RetailStatementTable

    Join on statementId = RetailStatementTable.statementId

    Many RetailStoreWorkShiftTable records → exactly one RetailStatementTable record

  • RetailStoreTable → RetailStoreTable

    Join on StoreRecId = RetailStoreTable.RecId

    One or more RetailStoreWorkShiftTable records → exactly one RetailStoreTable record

  • RetailWorkShiftSetup → RetailWorkShiftSetup

    Join on shiftId = RetailWorkShiftSetup.workShiftId, StoreRecId = RetailWorkShiftSetup.StoreRecId

    Many RetailStoreWorkShiftTable records → exactly one RetailWorkShiftSetup record

Get this data out

Tables are not exposed directly. These public entities read from RetailStoreWorkShiftTable; use one of them in Power BI, Power Platform or a data management project.

Need help with RetailStoreWorkShiftTable in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk