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 · root
  • RetailStoreTable · OuterJoin to RetailStoreWorkShiftTable · read-only

Fields (10)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
EndingDateDate the shift ended.Date
RetailEndingDate
NoYesRetailStoreWorkShiftTable.endingDate
EndingTimeTime the shift ended.Time
RetailEndingTime
NoYesRetailStoreWorkShiftTable.endingTime
ReplicationCounterCounter used for replication of the record.Integer
RetailReplicationCounter
NoYesRetailStoreWorkShiftTable.replicationCounter
ShiftDateDate of the shift.Date
RetailShiftDate
YesYesRetailStoreWorkShiftTable.shiftDate
ShiftIdID of the work shift, linked to the work shift setup of the store.String (1)
RetailWorkShiftId
YesYesRetailWorkShiftSetup.workShiftIdRetailStoreWorkShiftTable.shiftId
StartingDateDate the shift started.Date
RetailStartingDate
NoYesRetailStoreWorkShiftTable.startingDate
StartingTimeTime the shift started.Time
RetailStartingTime
NoYesRetailStoreWorkShiftTable.startingTime
StatementIdNumber of the statement linked to the shift.String (20)
RetailStatementId
NoYesRetailStatementJour.statementIdRetailStatementTable.statementIdRetailStoreWorkShiftTable.statementId
WorkShiftStatusStatus of the shift: open, closed or posted.Enum
RetailWorkShiftStatus
  • Open 0
  • Closed 1
  • Posted 2
NoYesRetailStoreWorkShiftTable.workShiftStatus
StoreNumberStore number that identifies the store.String
RetailStoreId
YesYesRetailStoreTable.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.StoreRecId

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

Email sales@drdynamics.co.uk