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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
StoreRecIdPoints to the store the shift belongs to. | Int64RefRecId | No | RetailStoreTable.RecId | None |
shiftDateDate of the shift. | DateRetailShiftDate | Yes | RetailStoreWorkShiftEntity | |
shiftIdID of the work shift, linked to the work shift setup of the store. | String (1)RetailWorkShiftId | Yes | RetailWorkShiftSetup.workShiftId | RetailStoreWorkShiftEntity |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
endingDateDate the shift ended. | DateRetailEndingDate | No | RetailStoreWorkShiftEntity | |
endingTimeTime the shift ended. | TimeRetailEndingTime | No | RetailStoreWorkShiftEntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
replicationCounterCounter used for replication of the record. | IntegerRetailReplicationCounter | No | RetailStoreWorkShiftEntity | |
startingDateDate the shift started. | DateRetailStartingDate | No | RetailStoreWorkShiftEntity | |
startingTimeTime the shift started. | TimeRetailStartingTime | No | RetailStoreWorkShiftEntity | |
statementIdNumber of the statement linked to the shift. | String (20)RetailStatementId | No | RetailStatementJour.statementIdRetailStatementTable.statementId | RetailStoreWorkShiftEntity |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
workShiftStatusStatus of the shift: open, closed or posted. | EnumRetailWorkShiftStatus (enum) | No | RetailStoreWorkShiftEntity |
Indexes (3)
storeShiftDateShiftIdPrimary indexStoreRecId,shiftDate,shiftIdUnique, alternate key.
replicationCounterIdxNot unique.
storeStatusIdxNot unique.
Relations (4)
Each relation joins RetailStoreWorkShiftTable to another table on the fields shown.
RetailStatementJour→RetailStatementJourJoin on
workShiftStatus = RetailWorkShiftStatus::Posted,statementId = RetailStatementJour.statementIdMany RetailStoreWorkShiftTable records → zero or one RetailStatementJour record
RetailStatementTable→RetailStatementTableJoin on
statementId = RetailStatementTable.statementIdMany RetailStoreWorkShiftTable records → exactly one RetailStatementTable record
RetailStoreTable→RetailStoreTableJoin on
StoreRecId = RetailStoreTable.RecIdOne or more RetailStoreWorkShiftTable records → exactly one RetailStoreTable record
RetailWorkShiftSetup→RetailWorkShiftSetupJoin on
shiftId = RetailWorkShiftSetup.workShiftId,StoreRecId = RetailWorkShiftSetup.StoreRecIdMany 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.
RetailStoreWorkShiftEntity· 9 fields from this table
Need help with RetailStoreWorkShiftTable in a report, an integration or a migration? Talk to Dr Dynamics.