Table
InterCompanyTradingPartner
Trading partner
Holds a trading partner for intercompany trade. Each row names a customer party and company, and a vendor party and company, and says whether the partner is a customer or a vendor. It links to customers, vendors and the global address book.
- Table name
InterCompanyTradingPartner- Module
Procurement and sourcing- Table group
Group- Table type
Regular- Data per company
No- Configuration key
TradeInterCompany- Primary index
None- Replacement key
TradingCustomerIdx- Key fields
CustomerParty, CustomerDataAreaId, VendorParty, VendorDataAreaId- Model
Foundation
Fields (10)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
CustomerPartyThe customer as a party in the global address book. | Int64InterCompanyTradingCustomerPartyID | No | DirPartyTable.RecId | None |
CustomerDataAreaIdCompany in which the customer record exists. Used together with the customer party to find the customer. | StringInterCompanyTradingCustomerDataAreaID | No | CustTable.DataAreaId | None |
VendorPartyThe vendor as a party in the global address book. | Int64InterCompanyTradingVendorPartyID | No | DirPartyTable.RecId | None |
VendorDataAreaIdCompany in which the vendor record exists. Used together with the vendor party to find the vendor. | StringInterCompanyTradingVendorDataAreaID | No | VendTable.DataAreaId | None |
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 | |
TradingPartnerTypeShows whether the trading partner is a customer or a vendor. | EnumInterCompanyTradingPartnerType (enum) | Yes | None |
Indexes (2)
TradingCustomerIdxReplacement keyCustomerParty,CustomerDataAreaId,VendorParty,VendorDataAreaIdUnique, alternate key.
TradingVendorIdxVendorParty,VendorDataAreaId,CustomerParty,CustomerDataAreaIdUnique, alternate key.
Relations (6)
Each relation joins InterCompanyTradingPartner to another table on the fields shown.
CustomerDataArea→DataAreaJoin on
CustomerDataAreaId = DataArea.id,DataArea.isVirtual = nullMany InterCompanyTradingPartner records → zero or one DataArea record
CustomerParty→DirPartyTableJoin on
CustomerParty = DirPartyTable.RecIdMany InterCompanyTradingPartner records → zero or one DirPartyTable record
VendorDataArea→DataAreaJoin on
VendorDataAreaId = DataArea.id,DataArea.isVirtual = nullMany InterCompanyTradingPartner records → zero or one DataArea record
VendorParty→DirPartyTableJoin on
VendorParty = DirPartyTable.RecIdMany InterCompanyTradingPartner records → zero or one DirPartyTable record
CustTable→CustTableJoin on
CustomerDataAreaId = CustTable.DataAreaId,CustomerParty = CustTable.PartyZero or one InterCompanyTradingPartner record → zero or one CustTable record
VendTable→VendTableJoin on
VendorDataAreaId = VendTable.DataAreaId,VendorParty = VendTable.PartyZero or one InterCompanyTradingPartner record → zero or one VendTable record
Get this data out
No public entity reads from InterCompanyTradingPartner. Its data is only reachable through the application, a custom entity or a database export.
Need help with InterCompanyTradingPartner in a report, an integration or a migration? Talk to Dr Dynamics.