Share via


InterCompanyTradingRelation::createOrUpdate Method

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

  • _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.

See Also

Reference

InterCompanyTradingRelation Table