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.
Finds or creates the specified record in the InterCompanyTradingPartner table that is based on a vendor.
Syntax
client server public static InterCompanyTradingPartner findOrCreateVendor(VendAccount _vendAccount, InterCompanyTradingVendorDataAreaID _vendorDataAreaID)
Run On
Called
Parameters
- _vendAccount
Type: VendAccount Extended Data Type
The vendor ID of the InterCompanyTradingPartner record to find or create.
- _vendorDataAreaID
Type: InterCompanyTradingVendorDataAreaID Extended Data Type
The vendor company ID of the InterCompanyTradingPartner record to find or create.
Return Value
Type: InterCompanyTradingPartner Table
A record in the InterCompanyTradingPartner table if the related record is found or created; otherwise, an empty record.
Remarks
The method returns an empty InterCompanyTradingPartner record if the vendor ID is not represented in the VendTable table.