Table

RetailReturnPolicyLine

Return Policy Line

Holds lines of a return policy. Each line can link to a store, a warehouse, a location and a pallet, and says whether inventory is blocked. Other return policy tables for reason codes and information codes build on these lines.

Table name
RetailReturnPolicyLine
Module
Commerce transactions and orders
Table group
Miscellaneous
Table type
Regular
Data per company
Yes
Configuration key
Retail
Primary index
None
Replacement key
None
Key fields
None
Model
Foundation

Fields (14)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
BlockItemYes/No value showing whether inventory is blocked for this policy line.Enum
RetailBlockItem
NoYes (enum)
NoRetailReturnPolicyLineEntityRetailReturnInfocodePolicyLineEntityRetailReturnReasoncodePolicyLineEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
InstanceRelationTypePurpose not clear from the metadata.low confidenceInt64
RelationType
NoNone
InventLocationIdThe warehouse for this policy line. It points to a warehouse record.String
InventLocationId
YesInventLocation.InventLocationIdRetailReturnPolicyLineEntityRetailReturnInfocodePolicyLineEntityRetailReturnReasoncodePolicyLineEntity
LineNumNumber that orders the lines of the policy.Real
LineNum
NoRetailReturnPolicyLineEntityRetailReturnInfocodePolicyLineEntityRetailReturnReasoncodePolicyLineEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PolicyPoints to the return policy that owns this line.Int64
RefRecId
YesRetailReturnPolicy.RecIdRetailReturnPolicyLineEntityRetailReturnInfocodePolicyLineEntityRetailReturnReasoncodePolicyLineEntity
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
RetailStoreTablePoints to the store that this policy line applies to.Int64
RefRecId
YesRetailStoreTable.RecIdRetailReturnPolicyLineEntityRetailReturnInfocodePolicyLineEntityRetailReturnReasoncodePolicyLineEntity
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
WMSLocationIdThe warehouse location for this policy line, used together with the warehouse.String
WMSLocationId
NoWMSLocation.wMSLocationIdRetailReturnPolicyLineEntityRetailReturnInfocodePolicyLineEntityRetailReturnReasoncodePolicyLineEntity
wMSPalletIdIdentifier of the pallet for this policy line.String (18)
WMSPalletId
NoRetailReturnPolicyLineEntityRetailReturnInfocodePolicyLineEntityRetailReturnReasoncodePolicyLineEntity

Indexes (1)

Relations (4)

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

  • InventLocation → InventLocation

    Join on InventLocationId = InventLocation.InventLocationId

    Many RetailReturnPolicyLine records → exactly one InventLocation record

  • RetailReturnPolicy → RetailReturnPolicy

    Join on Policy = RetailReturnPolicy.RecId

    Many RetailReturnPolicyLine records → exactly one RetailReturnPolicy record

  • RetailStoreTable → RetailStoreTable

    Join on RetailStoreTable = RetailStoreTable.RecId

    Many RetailReturnPolicyLine records → exactly one RetailStoreTable record

  • WMSLocation → WMSLocation

    Join on WMSLocationId = WMSLocation.wMSLocationId, InventLocationId = WMSLocation.inventLocationId

    Many RetailReturnPolicyLine records → zero or one WMSLocation record

Get this data out

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

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

Email sales@drdynamics.co.uk