Documentation

rebindAllContacts

 public static
\Bitrix\Crm\Binding\ContactCompanyTable::rebindAllContacts(
 integer $oldCompanyID,
 integer $targCompanyID
);

Method unbinds all Contacts from source Company and bind to target Company. Static method.

Parameters

ParameterDescriptionVersion
$oldCompanyIDSource Company ID.
$targCompanyIDTarget Company ID.

Exceptions

  • \Bitrix\Main\ArgumentException

Example



© «Bitrix24», 2001-2024
Up