copyContactsByType

Copies only contacts of the specified type from record pFromCapId to record pToCapId.

Version

2.0

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.
pContactType string Contact type to copy.

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.