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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
StoreNumberNumber of the store, linked to the stores table. | StringRetailStoreId | Yes | RetailStoreTable.StoreNumber | RetailUserStoreEntity |
UserID of the user, linked to user information. | StringUserId | Yes | SysUserInfo.Id | RetailUserStoreEntity |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PrimaryStoreYes/no flag showing whether this is the user's primary store. | EnumNoYes (enum) | No | RetailUserStoreEntity | |
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 | |
StoreNameLocal name of the store. | String (60)RetailStoreName | No | RetailUserStoreEntity | |
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)
UserStoreIdxPrimary indexUnique, alternate key.
Relations (2)
Each relation joins RetailUserStoreTable to another table on the fields shown.
RetailStoreTable→RetailStoreTableJoin on
StoreNumber = RetailStoreTable.StoreNumberMany RetailUserStoreTable records → exactly one RetailStoreTable record
UserInfoRelation→SysUserInfoJoin on
User = SysUserInfo.IdMany 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.
RetailUserStoreEntity· 4 fields from this table
Need help with RetailUserStoreTable in a report, an integration or a migration? Talk to Dr Dynamics.