Table

RetailStockCountTable

Stock counts

Header of a store stock count, identified by reference number. A count is either manual or scheduled. It links to a warehouse and a store inventory setup.

Table name
RetailStockCountTable
Module
Inventory management
Table group
WorksheetHeader
Table type
Regular
Data per company
Yes
Configuration key
Retail
Primary index
StockCountIdx
Replacement key
StockCountIdx
Key fields
ReferenceNumber
Model
Foundation

Fields (14)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
ReferenceNumberReference number that identifies the stock count.String (20)
RetailReferenceNo
YesNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DescriptionShort description of the stock count.String (60)
JournalDescription
NoNone
IsOpenInHQYes/no flag about whether the store inventory data is open in headquarters. The label is worded as a negative.low confidenceEnum
NoYes (enum)
NoNone
LinesLastRefreshedFromHQDate and time when the lines were last refreshed from headquarters.UtcDateTime
TransDateTime
NoNone
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
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
RefRecIdSystem record ID of a related record. The metadata does not say which table it points to.low confidenceInt64
RefRecId
NoNone
storeIdWarehouse for the count. It points to the warehouse record, although the field name says store.String
InventLocationId
NoInventLocation.InventLocationIdNone
StoreInventoryIdStore inventory setup used for the count. It points to the store inventory setup record.String
RetailHandheldId
NoRetailHandheldSetup.handheldIdNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TypeKind of stock count: manual or scheduled.Enum
RetailStockCountType (enum)
NoNone

Indexes (1)

  • StockCountIdxPrimary indexReplacement key

    ReferenceNumber

    Unique, alternate key.

Relations (2)

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

  • InventLocation → InventLocation

    Join on storeId = InventLocation.InventLocationId

    Many RetailStockCountTable records → exactly one InventLocation record

  • RetailHandheldSetup → RetailHandheldSetup

    Join on StoreInventoryId = RetailHandheldSetup.handheldId

    Many RetailStockCountTable records → zero or one RetailHandheldSetup record

Get this data out

No public entity reads from RetailStockCountTable. Its data is only reachable through the application, a custom entity or a database export.

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

Email sales@drdynamics.co.uk