Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Creates or updates a record in the InterCompanyTradingRelation table that is based on a customer ID and vendor ID.
Syntax
server public static InterCompanyTradingRelation createOrUpdate(
    CustAccount _custAccount, 
    InterCompanyTradingCustomerDataAreaID _custDataAreaID, 
    VendAccount _vendAccount, 
    InterCompanyTradingVendorDataAreaID _vendDataAreaId, 
    InterCompanyTradingActive _active, 
   [RecId _tradingRelationRecId])
Run On
Server
Parameters
- _custAccount
 Type: CustAccount Extended Data Type
 The customer ID from which to base the InterCompanyTradingRelation record.
- _custDataAreaID
 Type: InterCompanyTradingCustomerDataAreaID Extended Data Type
 The customer company ID from which to base the InterCompanyTradingRelation record.
- _vendAccount
 Type: VendAccount Extended Data Type
 The vendor ID from which to base the InterCompanyTradingRelation record.
- _vendDataAreaId
 Type: InterCompanyTradingVendorDataAreaID Extended Data Type
 The vendor company ID from which to base the InterCompanyTradingRelation record.
- _active
 Type: InterCompanyTradingActive Extended Data Type
 A Boolean value that indicates whether the InterCompanyTradingRelation table record is active.
- _tradingRelationRecId
 Type: RecId Extended Data Type
 The record ID of the InterCompanyTradingRelation table record to update; optional.
Return Value
Type: InterCompanyTradingRelation Table
A record in the InterCompanyTradingRelation table; otherwise, an empty record.
Remarks
If the customer or the vendor is not an inter-company trading partner, the records in the InterCompanyTradingPartner table are created automatically.