Table

RetailDevice

Retail Devices

Holds retail devices, keyed by device ID. It records the activation, deactivation and validation status, the workers involved and the device token data. It links to a register, a device type and package information.

Table name
RetailDevice
Module
Commerce stores
Table group
Main
Table type
Regular
Data per company
No
Configuration key
Retail
Primary index
None
Replacement key
DeviceIdx
Key fields
DeviceId
Model
Foundation

Fields (30)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
DeviceIdUnique ID of the device.String (64)
RetailDeviceId
YesRetailDeviceEntity
ActivatedDateTimeDate and time the device was activated.UtcDateTime
RetailDeviceActivationDateTime
NoRetailDeviceEntity
ActivationGuidGUID that identifies the device activation.Guid
RetailDeviceActivationGUID
NoRetailDeviceEntity
ActivationStaffIdWorker who activated the device.String (25)
RetailStaffId
NoRetailDeviceEntity
ActivationStatusCurrent activation status: pending, activated, deactivated or disabled.Enum
RetailDeviceActivationStatus
RetailDeviceActivationStatusBase (enum)
NoRetailDeviceEntity
ActivationValidationDateTimeDate and time the activation was validated.UtcDateTimeNoNone
ActivationValidationStaffIdWorker linked to the activation validation.String (25)
RetailStaffId
NoNone
ActivationValidationStatusResult of the validation: not run, passed or failed.Enum
RetailDeviceValidationStatus (enum)
NoNone
AllowMassActivationYes/no flag allowing the device to be activated in bulk.Enum
RetailAllowMassActivation
NoYes (enum)
NoRetailDeviceEntity
CurrentVersionPackage version currently installed on the device.String (50)
CurrentVersion
NoNone
DeactivateCommentsFree-text comments about the deactivation.String (256)
RetailDeviceDeactivateComment
NoRetailDeviceEntity
DeactivatedDateTimeDate and time the device was deactivated.UtcDateTime
RetailDeviceActivationDateTime
NoRetailDeviceEntity
DeactivationStaffIdWorker who deactivated the device.String (25)
RetailStaffId
NoRetailDeviceEntity
DescriptionShort description of the device.String (50)
RetailDeviceDescription
NoRetailDeviceEntity
DeviceTokenAlgorithmName of the algorithm used to encrypt the device token.String (25)
DeviceTokenAlgorithmName
NoNone
DeviceTokenDataStored token data for the device. No label is given.low confidenceString (128)NoNone
DeviceTokenIssueTimeDate and time the device token was issued.UtcDateTimeNoNone
DeviceTokenSaltSalt value stored with the device token. No label is given.low confidenceString (128)NoNone
MergedSelfServicePackageReferenceMerged self-service package for the device. It points to a merged package record.Int64
RefRecId
NoRetailSelfServiceMergedPackages.RecIdRetailDeviceEntity
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PhysicalDeviceIdID of the physical device.String (64)
RetailPhysicalDeviceId
NoRetailDeviceEntity
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
SelfServicePackageSelf-service package for the device. It points to a package information record.Int64
RefRecId
NoRetailSelfServicePackageInfo.RecIdNone
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TerminalRegister that the device is linked to.String
RetailTerminalId
NoRetailTerminalTable.terminalIdRetailDeviceEntity
TypeType of the device. It points to a retail device type.Int64
RetailDeviceTypeRecId
YesRetailDeviceTypes.RecIdRetailDeviceEntity
UseInMemoryDeviceDataStorageYes/no flag for keeping device data in memory on the device.Enum
NoYes (enum)
YesNone

Indexes (2)

  • DeviceIdxReplacement key

    DeviceId

    Unique, alternate key.

  • TerminalIdx

    Terminal

    Not unique.

Relations (7)

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

  • RetailDeviceType → RetailDeviceTypes

    Join on Type = RetailDeviceTypes.RecId

    Exactly one RetailDevice record → exactly one RetailDeviceTypes record

  • RetailTerminal → RetailTerminalTable

    Join on Terminal = RetailTerminalTable.terminalId

    Zero or one RetailDevice record → exactly one RetailTerminalTable record

  • RetailStaffId_Activated → hcmworker

    Join on ActivationStaffId = hcmworker.PersonnelNumber

    Zero or one RetailDevice record → exactly one hcmworker record

  • RetailStaffId_Deactivated → hcmworker

    Join on DeactivationStaffId = hcmworker.PersonnelNumber

    Zero or one RetailDevice record → exactly one hcmworker record

  • RetailSelfServicePackageInfo → RetailSelfServicePackageInfo

    Join on SelfServicePackage = RetailSelfServicePackageInfo.RecId

    Many RetailDevice records → zero or one RetailSelfServicePackageInfo record

  • RetailStaffId_ActivationValidation → hcmworker

    Join on ActivationValidationStaffId = hcmworker.PersonnelNumber

    Zero or one RetailDevice record → exactly one hcmworker record

  • RetailSelfServiceMergedPackages → RetailSelfServiceMergedPackages

    Join on MergedSelfServicePackageReference = RetailSelfServiceMergedPackages.RecId

    Many RetailDevice records → zero or one RetailSelfServiceMergedPackages record

Get this data out

Tables are not exposed directly. These public entities read from RetailDevice; use one of them in Power BI, Power Platform or a data management project.

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

Email sales@drdynamics.co.uk