Table

WHSFilterTable

Product filter relations

Holds product filter relations. Each row links a filter code and item group to a referenced record, such as a customer, customer group, vendor or vendor group, for a date range. It can also hold a number of days for mixing batches.

Table name
WHSFilterTable
Module
Inventory
Table group
Main
Table type
Regular
Data per company
Yes
Configuration key
WHSandTMS
Primary index
RecId
Replacement key
GroupIdx
Key fields
RefTableId, RefRecId, FromDateTime, ItemGroupId, FilterCode
Model
Foundation

Fields (15)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
RefTableIdNumeric ID of the table that the referenced record belongs to.Integer
RefTableId
YesWHSCustomerProductFilterV3EntityWHSProductFilterGroupDetailV2EntityWHSBatchNumberOfDaysToMixFilterEntityand 4 more
RefRecIdSystem record ID of the referenced record, such as a customer group.Int64
RefRecId
YesWHSCustomerProductFilterV3EntityWHSBatchNumberOfDaysToMixFilterEntityWHSCustomerGroupProductFilterEntityand 3 more
FromDateTimeDate and time when the relation starts.UtcDateTime
FromDateTime
NoWHSCustomerProductFilterV3EntityWHSProductFilterGroupDetailV2EntityWHSBatchNumberOfDaysToMixFilterEntityand 4 more
ItemGroupIdItem group that the relation applies to. Points to the Item groups table.String
ItemGroupId
YesInventItemGroup.ItemGroupIdWHSCustomerProductFilterV3EntityWHSProductFilterGroupDetailV2EntityWHSBatchNumberOfDaysToMixFilterEntityand 4 more
FilterCodeProduct filter code that the relation uses.String
WHSFilterCode
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
NumDaysToMixNumber of days within which batches may be mixed.Integer
WHSNumDaysToMix
NoWHSProductFilterGroupDetailV2EntityWHSBatchNumberOfDaysToMixFilterEntity
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
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
ToDateTimeDate and time when the relation ends.UtcDateTime
ToDateTime
NoWHSCustomerProductFilterV3EntityWHSProductFilterGroupDetailV2Entity

Indexes (1)

Relations (16)

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

  • CustGroup → CustGroup

    Join on RefRecId = CustGroup.RecId, RefTableId = CustGroup.TableId

    Many WHSFilterTable records → zero or one CustGroup record

  • CustTable → CustTable

    Join on RefRecId = CustTable.RecId, RefTableId = CustTable.TableId

    Many WHSFilterTable records → zero or one CustTable record

  • FilterCode1 → WHSFilters

    Join on WHSFilters.FilterTitle = WHSFilterTitle::Code1, FilterCode[1] = WHSFilters.FilterNum

    Many WHSFilterTable records → zero or one WHSFilters record

  • FilterCode2 → WHSFilters

    Join on WHSFilters.FilterTitle = WHSFilterTitle::Code2, FilterCode[2] = WHSFilters.FilterNum

    Many WHSFilterTable records → zero or one WHSFilters record

  • FilterCode3 → WHSFilters

    Join on WHSFilters.FilterTitle = WHSFilterTitle::Code3, FilterCode[3] = WHSFilters.FilterNum

    Many WHSFilterTable records → zero or one WHSFilters record

  • FilterCode4 → WHSFilters

    Join on WHSFilters.FilterTitle = WHSFilterTitle::Code4, FilterCode[4] = WHSFilters.FilterNum

    Many WHSFilterTable records → zero or one WHSFilters record

  • FilterCode5 → WHSFilters

    Join on WHSFilters.FilterTitle = WHSFilterTitle::Code5, FilterCode[5] = WHSFilters.FilterNum

    Many WHSFilterTable records → zero or one WHSFilters record

  • FilterCode6 → WHSFilters

    Join on WHSFilters.FilterTitle = WHSFilterTitle::Code6, FilterCode[6] = WHSFilters.FilterNum

    Many WHSFilterTable records → zero or one WHSFilters record

  • FilterCode7 → WHSFilters

    Join on WHSFilters.FilterTitle = WHSFilterTitle::Code7, FilterCode[7] = WHSFilters.FilterNum

    Many WHSFilterTable records → zero or one WHSFilters record

  • FilterCode8 → WHSFilters

    Join on WHSFilters.FilterTitle = WHSFilterTitle::Code8, FilterCode[8] = WHSFilters.FilterNum

    Many WHSFilterTable records → zero or one WHSFilters record

  • FilterCode9 → WHSFilters

    Join on WHSFilters.FilterTitle = WHSFilterTitle::Code9, FilterCode[9] = WHSFilters.FilterNum

    Many WHSFilterTable records → zero or one WHSFilters record

  • FilterCode10 → WHSFilters

    Join on WHSFilters.FilterTitle = WHSFilterTitle::Code10, FilterCode[10] = WHSFilters.FilterNum

    Many WHSFilterTable records → zero or one WHSFilters record

  • InventItemGroup → InventItemGroup

    Join on ItemGroupId = InventItemGroup.ItemGroupId

    One or more WHSFilterTable records → exactly one InventItemGroup record

  • VendGroup → VendGroup

    Join on RefRecId = VendGroup.RecId, RefTableId = VendGroup.TableId

    Many WHSFilterTable records → zero or one VendGroup record

  • VendTable → VendTable

    Join on RefRecId = VendTable.RecId, RefTableId = VendTable.TableId

    Many WHSFilterTable records → zero or one VendTable record

  • WHSFilterGroupTable → WHSFilterGroupTable

    Join on RefRecId = WHSFilterGroupTable.RecId, RefTableId = WHSFilterGroupTable.TableId

    Many WHSFilterTable records → zero or one WHSFilterGroupTable record

Get this data out

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

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

Email sales@drdynamics.co.uk