Table

WHSReturnItemPolicy

Return item policy

Sets the return rule for an item, an item group or all items. The key is the item code plus the item or group. The rule says whether returns are always allowed, never allowed, or allowed for a number of days after shipment.

Table name
WHSReturnItemPolicy
Module
Warehouse
Table group
Reference
Table type
Regular
Data per company
Yes
Configuration key
WHSandTMS
Primary index
ItemCodeItemRelationIdx
Replacement key
ItemCodeItemRelationIdx
Key fields
ItemCode, ItemRelation
Model
Foundation

Fields (14)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
ItemCodeShows whether the policy applies to one item, an item group or all items.Enum
WHSReturnItemCode
TableGroupAll (enum)
NoWHSReturnItemPolicyEntity
ItemRelationThe item or item group the policy applies to. Points to an item or an item group, depending on the item code.String (20)
WHSReturnItemRelation
NoInventItemGroup.ItemGroupIdInventTable.ItemIdWHSReturnItemPolicyEntity
AllowedDaysForReturnNumber of days after shipment in which a return is allowed.Integer
WHSReturnItemPolicyAllowedDaysForReturn
NoWHSReturnItemPolicyEntity
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
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
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
ReturnAcceptanceRule for accepting returns: always allowed, never allowed, or allowed for a number of days after shipment.Enum
WHSReturnItemPolicyReturnAcceptance (enum)
NoWHSReturnItemPolicyEntity
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 WHSReturnItemPolicy to another table on the fields shown.

  • InventTable → InventTable

    Join on ItemCode = TableGroupAll::Table, ItemRelation = InventTable.ItemId

    Zero or one WHSReturnItemPolicy record → zero or one InventTable record

  • InventItemGroup → InventItemGroup

    Join on ItemCode = TableGroupAll::GroupId, ItemRelation = InventItemGroup.ItemGroupId

    Zero or one WHSReturnItemPolicy record → zero or one InventItemGroup record

Get this data out

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

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

Email sales@drdynamics.co.uk