Documentation

crm.contact.company.add

Scope: catalog Permissions to execute: for all

crm.contact.company.add(id, fields)

Adds company to the specified contact.

Parameters

Parameter Description
idContact ID.
fieldsObject with the following fields:
  • COMPANY_ID - company ID (required field)
  • SORT - sorting index
  • IS_PRIMARY - primary company flag
Note: to find out the required field format, execute the method crm.contact.fields and view the format for fetched field values.


© «Bitrix24», 2001-2024