Table
RetailStoreWorkShiftTrans
Work shift trans
Holds work shift lines for a store and shift. Each line has opening and closing dates and times, a status and a statement method (operator ID, POS terminal, total or shift). It links to the work shift table, staff and terminals.
- Table name
RetailStoreWorkShiftTrans- Module
Commerce employees- Table group
WorksheetLine- Table type
Regular- Data per company
Yes- Configuration key
Retail- Primary index
RecId- Replacement key
None- Key fields
None- Model
Foundation
Fields (17)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
closingDateDate the line ended. | DateRetailEndingDate | No | RetailStoreWorkShiftTran2EntityRetailStoreWorkShiftTranEntity | |
closingTimeTime the line ended. | TimeRetailEndingTime | No | RetailStoreWorkShiftTran2EntityRetailStoreWorkShiftTranEntity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
openingDateDate the line started. | DateRetailStartingDate | No | RetailStoreWorkShiftTran2EntityRetailStoreWorkShiftTranEntity | |
openingTimeTime the line started. | TimeRetailStartingTime | No | RetailStoreWorkShiftTran2EntityRetailStoreWorkShiftTranEntity | |
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 | None | |
shiftDateDate of the shift, linked to the work shift table. | DateRetailShiftDate | Yes | RetailStoreWorkShiftTran2EntityRetailStoreWorkShiftTranEntity | |
shiftIdID of the work shift, linked to the work shift setup of the store. | String (1)RetailWorkShiftId | Yes | RetailWorkShiftSetup.workShiftId | RetailStoreWorkShiftTran2EntityRetailStoreWorkShiftTranEntity |
statementCodeCode of the statement, which refers to a staff member or a POS terminal. | String (25)RetailStatementCode | Yes | RetailStaffTable.staffIdRetailTerminalTable.terminalId | RetailStoreWorkShiftTran2EntityRetailStoreWorkShiftTranEntity |
statementMethodWay the statement is grouped: by operator ID, POS terminal, total or shift. | EnumRetailStatementMethodRetailStaffTerminalTotal (enum) | No | RetailStoreWorkShiftTran2EntityRetailStoreWorkShiftTranEntity | |
statusStatus of the line: open, closed or posted. | EnumRetailWorkShiftStatus (enum) | No | RetailStoreWorkShiftTran2EntityRetailStoreWorkShiftTranEntity | |
StoreRecIdPoints to the store the line belongs to. | Int64RefRecId | No | RetailStoreTable.RecId | RetailStoreWorkShiftTran2EntityRetailStoreWorkShiftTranEntity |
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 |
Indexes (1)
storeDateShiftStatmentCodeIdxStoreRecId,shiftDate,shiftId,statementCodeNot unique.
Relations (5)
Each relation joins RetailStoreWorkShiftTrans to another table on the fields shown.
RetailStaffTable→RetailStaffTableJoin on
statementCode = RetailStaffTable.staffId,statementMethod = RetailStaffTerminalTotal::StaffMany RetailStoreWorkShiftTrans records → zero or one RetailStaffTable record
RetailStoreTable→RetailStoreTableJoin on
StoreRecId = RetailStoreTable.RecIdOne or more RetailStoreWorkShiftTrans records → exactly one RetailStoreTable record
RetailStoreWorkShiftTable→RetailStoreWorkShiftTableJoin on
shiftDate = RetailStoreWorkShiftTable.shiftDateMany RetailStoreWorkShiftTrans records → zero or one RetailStoreWorkShiftTable record
RetailTerminalTable→RetailTerminalTableJoin on
statementCode = RetailTerminalTable.terminalIdMany RetailStoreWorkShiftTrans records → exactly one RetailTerminalTable record
RetailWorkShiftSetup→RetailWorkShiftSetupJoin on
shiftId = RetailWorkShiftSetup.workShiftId,StoreRecId = RetailWorkShiftSetup.StoreRecIdOne or more RetailStoreWorkShiftTrans records → exactly one RetailWorkShiftSetup record
Get this data out
Tables are not exposed directly. These public entities read from RetailStoreWorkShiftTrans; use one of them in Power BI, Power Platform or a data management project.
RetailStoreWorkShiftTran2Entity· 10 fields from this tableRetailStoreWorkShiftTranEntity· 10 fields from this table
Need help with RetailStoreWorkShiftTrans in a report, an integration or a migration? Talk to Dr Dynamics.