TransportationDocument::copy Method
Copies the transportation data information from one record to another.
Syntax
client server public static void copy(Common _sourceTransportationDataRef, Common _destinationTransportationDataRef)
Run On
Called
Parameters
- _sourceTransportationDataRef
Type: Common Table
A record that might contain a reference to a TransportationDocument record to copy.
- _destinationTransportationDataRef
Type: Common Table
A record to modify to reference a copy of the source record's transportation data.
Exceptions
Exception | Condition |
---|---|
Error | Either the source or the destination record does not contain a field for the TransportationDocument record reference. |
Remarks
The destination record can be modified but will not be written.
The destination transportation document will be updated instead of created if the reference is already set on the destination record.