copyContacts

Copies all contacts from record pFromCapId to record pToCapId.

Version

1.3

Parameters

Parameter Type Description
pFromCapId CapIDModel ID of record from which to copy.
pToCapId CapIDModel ID of record to which to copy. If null, the function uses the current record.

Notes

If target record has a primary contact and the source record also has a primary contact, the target record ends up with 2 primary contacts.

getApplication( ), getParent( ), createChild(), createCap() functions each return a Cap ID object.