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 descriptionType / EDT / enumMandatoryReferencesIn public entities
StoreRecIdSystem record ID of the store this shift setup belongs to. It points to a record in RetailStoreTable.Int64
RefRecId
YesRetailStoreTable.RecIdRetailWorkShiftSetup2EntityRetailWorkShiftSetupEntity
workShiftIdOne-character ID of the work shift, unique within the store.String (1)
RetailWorkShiftId
YesRetailWorkShiftSetup2EntityRetailWorkShiftSetupEntity
abbreviationOne-character short code for the work shift.String (1)
RetailAbbreviation
NoRetailWorkShiftSetup2EntityRetailWorkShiftSetupEntity
abbreviationTextShort text of up to 15 characters that goes with the abbreviation.String (15)
RetailAbbreviationText
NoRetailWorkShiftSetup2EntityRetailWorkShiftSetupEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
dateReferenceSays whether the reference date is taken from the end time or the start time of the shift.Enum
RetailDateReference
RetailEndTimeStartTime (enum)
NoRetailWorkShiftSetup2EntityRetailWorkShiftSetupEntity
endingTimeTime of day at which the shift ends.Time
RetailEndingTime
NoRetailWorkShiftSetup2EntityRetailWorkShiftSetupEntity
nameDescription of the work shift.String (60)
Description
NoRetailWorkShiftSetup2EntityRetailWorkShiftSetupEntity
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
startTimeTime of day at which the shift starts.Time
RetailStartingTime
NoRetailWorkShiftSetup2EntityRetailWorkShiftSetupEntity
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (2)

Relations (1)

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

  • RetailStoreTable → RetailStoreTable

    Join on StoreRecId = RetailStoreTable.RecId

    Many 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.

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

Email sales@drdynamics.co.uk