Table
WHSAccountItemStatusDefault
Default inventory status configuration
Sets the default inventory status for an item, depending on the account and the module. The key is item, account number and module. The module can be inventory, customer or vendor. The account points to a customer or vendor.
- Table name
WHSAccountItemStatusDefault- Module
Inventory- Table group
Main- Table type
Regular- Data per company
Yes- Configuration key
WHSandTMS- Primary index
ItemAccountModuleIdx- Replacement key
ItemAccountModuleIdx- Key fields
ItemId, AccountNum, ModuleInventCustVend- Model
Foundation
Fields (10)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ItemIdNumber of the item the default applies to. | String (20)ItemId | Yes | InventTable.ItemId | WHSItemDefaultInventoryStatusEntity |
AccountNumCustomer or vendor account number the default applies to. | String (20)AccountNum | No | CustTable.AccountNumVendTable.AccountNum | WHSItemDefaultInventoryStatusEntity |
ModuleInventCustVendArea the default applies to: inventory, customer or vendor. | EnumModuleInventCustVend (enum) | Yes | WHSItemDefaultInventoryStatusEntity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DefaultStatusIdID of the default inventory status. Points to an inventory status record. | StringWHSDefaultStatusId | Yes | WHSInventStatus.InventStatusId | WHSItemDefaultInventoryStatusEntity |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
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 | |
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)
ItemAccountModuleIdxPrimary indexReplacement keyItemId,AccountNum,ModuleInventCustVendUnique, alternate key.
Relations (4)
Each relation joins WHSAccountItemStatusDefault to another table on the fields shown.
InventTable→InventTableJoin on
ItemId = InventTable.ItemIdMany WHSAccountItemStatusDefault records → exactly one InventTable record
WHSInventStatus→WHSInventStatusJoin on
DefaultStatusId = WHSInventStatus.InventStatusIdMany WHSAccountItemStatusDefault records → exactly one WHSInventStatus record
CustTable→CustTableJoin on
ModuleInventCustVend = ModuleInventCustVend::Cust,AccountNum = CustTable.AccountNumMany WHSAccountItemStatusDefault records → zero or one CustTable record
VendTable→VendTableJoin on
ModuleInventCustVend = ModuleInventCustVend::Vend,AccountNum = VendTable.AccountNumMany WHSAccountItemStatusDefault records → zero or one VendTable record
Get this data out
Tables are not exposed directly. These public entities read from WHSAccountItemStatusDefault; use one of them in Power BI, Power Platform or a data management project.
WHSItemDefaultInventoryStatusEntity· 4 fields from this table
Need help with WHSAccountItemStatusDefault in a report, an integration or a migration? Talk to Dr Dynamics.