Table

RetailUserStoreTable

User store

Links users to stores. The key is the store number plus the user. It also shows which store is the primary store and holds a local store name.

Table name
RetailUserStoreTable
Module
Commerce employees
Table group
Miscellaneous
Table type
Regular
Data per company
Yes
Configuration key
Retail
Primary index
UserStoreIdx
Replacement key
None
Key fields
StoreNumber, User
Model
Foundation

Fields (10)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
StoreNumberNumber of the store, linked to the stores table.String
RetailStoreId
YesRetailStoreTable.StoreNumberRetailUserStoreEntity
UserID of the user, linked to user information.String
UserId
YesSysUserInfo.IdRetailUserStoreEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PrimaryStoreYes/no flag showing whether this is the user's primary store.Enum
NoYes (enum)
NoRetailUserStoreEntity
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
StoreNameLocal name of the store.String (60)
RetailStoreName
NoRetailUserStoreEntity
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

Indexes (1)

Relations (2)

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

  • RetailStoreTable → RetailStoreTable

    Join on StoreNumber = RetailStoreTable.StoreNumber

    Many RetailUserStoreTable records → exactly one RetailStoreTable record

  • UserInfoRelation → SysUserInfo

    Join on User = SysUserInfo.Id

    Many RetailUserStoreTable records → exactly one SysUserInfo record

Get this data out

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

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

Email sales@drdynamics.co.uk