InterCompanyTradingPartner::findOrCreateCustomer Method
Finds or creates the specified record in the InterCompanyTradingPartner table that is based on a customer.
Syntax
client server public static InterCompanyTradingPartner findOrCreateCustomer(CustAccount _custAccount, InterCompanyTradingCustomerDataAreaID _customerDataAreaID)
Run On
Called
Parameters
- _custAccount
Type: CustAccount Extended Data Type
The customer ID of the InterCompanyTradingPartner table record to find or create.
- _customerDataAreaID
Type: InterCompanyTradingCustomerDataAreaID Extended Data Type
The customer company ID of the InterCompanyTradingPartner record to find or create.
Return Value
Type: InterCompanyTradingPartner Table
A record in the InterCompanyTradingPartner table if the partner is found or created; otherwise, an empty record.
Remarks
The method returns an empty InterCompanyTradingPartner record if the customer ID is not represented in the CustTable table.