Data entity
RetailStoreWorkShiftEntity
Holds work shifts for stores. Each record is one shift on one date for one store. It includes start and end dates and times, status, statement number and a replication counter.
- Entity name
RetailStoreWorkShiftEntity- Public entity name
RetailStoreWorkShift- OData collection
RetailStoreWorkShifts- Category
Not set- Module
Commerce employees- Read-only
No- Data management enabled
Yes- Configuration key
Retail- Keys
ShiftDate, ShiftId, StoreNumber- Staging table
RetailStoreWorkShiftStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/RetailStoreWorkShifts- Dataverse virtual table
mserp_retailstoreworkshiftentity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.- Data management
- Enabled: you can use it in import and export projects.
Data sources
RetailStoreWorkShiftTable· rootRetailStoreTable· OuterJoin toRetailStoreWorkShiftTable· read-only
Fields (10)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
EndingDateDate the shift ended. | DateRetailEndingDate | No | Yes | RetailStoreWorkShiftTable.endingDate | |
EndingTimeTime the shift ended. | TimeRetailEndingTime | No | Yes | RetailStoreWorkShiftTable.endingTime | |
ReplicationCounterCounter used for replication of the record. | IntegerRetailReplicationCounter | No | Yes | RetailStoreWorkShiftTable.replicationCounter | |
ShiftDateDate of the shift. | DateRetailShiftDate | Yes | Yes | RetailStoreWorkShiftTable.shiftDate | |
ShiftIdID of the work shift, linked to the work shift setup of the store. | String (1)RetailWorkShiftId | Yes | Yes | RetailWorkShiftSetup.workShiftId | RetailStoreWorkShiftTable.shiftId |
StartingDateDate the shift started. | DateRetailStartingDate | No | Yes | RetailStoreWorkShiftTable.startingDate | |
StartingTimeTime the shift started. | TimeRetailStartingTime | No | Yes | RetailStoreWorkShiftTable.startingTime | |
StatementIdNumber of the statement linked to the shift. | String (20)RetailStatementId | No | Yes | RetailStatementJour.statementIdRetailStatementTable.statementId | RetailStoreWorkShiftTable.statementId |
WorkShiftStatusStatus of the shift: open, closed or posted. | Enum
| No | Yes | RetailStoreWorkShiftTable.workShiftStatus | |
StoreNumberStore number that identifies the store. | StringRetailStoreId | Yes | Yes | RetailStoreTable.StoreNumber |
Foreign keys (3)
Each field below points to the key of another table. Join on it in Power BI, or follow the link to an entity that exposes that table.
ShiftId→RetailWorkShiftSetup.workShiftId(key of RetailWorkShiftSetup)Join on all of:
ShiftId=RetailWorkShiftSetup.workShiftId,StoreRecId(table field, not in this entity) =RetailWorkShiftSetup.StoreRecIdMany RetailStoreWorkShiftTable records → exactly one RetailWorkShiftSetup record
RetailWorkShiftSetup details: see RetailWorkShiftSetup2Entity, RetailWorkShiftSetupEntity
StatementId→RetailStatementJour.statementId(key of RetailStatementJour)Relation also requires workShiftStatus = RetailWorkShiftStatus::Posted.
Many RetailStoreWorkShiftTable records → zero or one RetailStatementJour record
RetailStatementJour details: see RetailStatementJourBIEntity
StatementId→RetailStatementTable.statementId(key of RetailStatementTable)Many RetailStoreWorkShiftTable records → exactly one RetailStatementTable record
RetailStatementTable details: see RetailEodStatementAggregationEntity
Need help with RetailStoreWorkShiftEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.