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 descriptionType / EDT / enumMandatoryReferencesIn public entities
CustomerPartyThe customer as a party in the global address book.Int64
InterCompanyTradingCustomerPartyID
NoDirPartyTable.RecIdNone
CustomerDataAreaIdCompany in which the customer record exists. Used together with the customer party to find the customer.String
InterCompanyTradingCustomerDataAreaID
NoCustTable.DataAreaIdNone
VendorPartyThe vendor as a party in the global address book.Int64
InterCompanyTradingVendorPartyID
NoDirPartyTable.RecIdNone
VendorDataAreaIdCompany in which the vendor record exists. Used together with the vendor party to find the vendor.String
InterCompanyTradingVendorDataAreaID
NoVendTable.DataAreaIdNone
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
TradingPartnerTypeShows whether the trading partner is a customer or a vendor.Enum
InterCompanyTradingPartnerType (enum)
YesNone

Indexes (2)

Relations (6)

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

  • CustomerDataArea → DataArea

    Join on CustomerDataAreaId = DataArea.id, DataArea.isVirtual = null

    Many InterCompanyTradingPartner records → zero or one DataArea record

  • CustomerParty → DirPartyTable

    Join on CustomerParty = DirPartyTable.RecId

    Many InterCompanyTradingPartner records → zero or one DirPartyTable record

  • VendorDataArea → DataArea

    Join on VendorDataAreaId = DataArea.id, DataArea.isVirtual = null

    Many InterCompanyTradingPartner records → zero or one DataArea record

  • VendorParty → DirPartyTable

    Join on VendorParty = DirPartyTable.RecId

    Many InterCompanyTradingPartner records → zero or one DirPartyTable record

  • CustTable → CustTable

    Join on CustomerDataAreaId = CustTable.DataAreaId, CustomerParty = CustTable.Party

    Zero or one InterCompanyTradingPartner record → zero or one CustTable record

  • VendTable → VendTable

    Join on VendorDataAreaId = VendTable.DataAreaId, VendorParty = VendTable.Party

    Zero 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.

Email sales@drdynamics.co.uk