Table
RetailWorkShiftSetup
Work shift setup
Holds the work shift definitions for each store. Each record is identified by the store (a reference to RetailStoreTable) and a one-character work shift ID. It stores a name, a short abbreviation, and the start and end times of the shift.
- Table name
RetailWorkShiftSetup- Module
Commerce transactions and orders- Table group
Parameter- Table type
Regular- Data per company
Yes- Configuration key
Retail- Primary index
storeShiftIdx- Replacement key
None- Key fields
StoreRecId, workShiftId- Model
Foundation
Fields (13)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
StoreRecIdSystem record ID of the store this shift setup belongs to. It points to a record in RetailStoreTable. | Int64RefRecId | Yes | RetailStoreTable.RecId | RetailWorkShiftSetup2EntityRetailWorkShiftSetupEntity |
workShiftIdOne-character ID of the work shift, unique within the store. | String (1)RetailWorkShiftId | Yes | RetailWorkShiftSetup2EntityRetailWorkShiftSetupEntity | |
abbreviationOne-character short code for the work shift. | String (1)RetailAbbreviation | No | RetailWorkShiftSetup2EntityRetailWorkShiftSetupEntity | |
abbreviationTextShort text of up to 15 characters that goes with the abbreviation. | String (15)RetailAbbreviationText | No | RetailWorkShiftSetup2EntityRetailWorkShiftSetupEntity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
dateReferenceSays whether the reference date is taken from the end time or the start time of the shift. | EnumRetailDateReferenceRetailEndTimeStartTime (enum) | No | RetailWorkShiftSetup2EntityRetailWorkShiftSetupEntity | |
endingTimeTime of day at which the shift ends. | TimeRetailEndingTime | No | RetailWorkShiftSetup2EntityRetailWorkShiftSetupEntity | |
nameDescription of the work shift. | String (60)Description | No | RetailWorkShiftSetup2EntityRetailWorkShiftSetupEntity | |
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 | |
startTimeTime of day at which the shift starts. | TimeRetailStartingTime | No | RetailWorkShiftSetup2EntityRetailWorkShiftSetupEntity | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (2)
storeShiftIdxPrimary indexUnique, alternate key.
storeIdStartTimeIdxNot unique.
Relations (1)
Each relation joins RetailWorkShiftSetup to another table on the fields shown.
RetailStoreTable→RetailStoreTableJoin on
StoreRecId = RetailStoreTable.RecIdMany RetailWorkShiftSetup records → exactly one RetailStoreTable record
Get this data out
Tables are not exposed directly. These public entities read from RetailWorkShiftSetup; use one of them in Power BI, Power Platform or a data management project.
RetailWorkShiftSetup2Entity· 8 fields from this tableRetailWorkShiftSetupEntity· 8 fields from this table
Need help with RetailWorkShiftSetup in a report, an integration or a migration? Talk to Dr Dynamics.