Add
integer CCrmActivity::Add( array arFields, bool checkPerms = true, bool regEvent = true, array options );
Adds new activity. Static method.
Call parameters
Parameter | Description | Available from version |
---|---|---|
arFields | Array of activity parameters; contains the following fields:
| |
checkPerms | This parameter checks access permissions for an activity. Can have values true or false. | |
regEvent | This parameter registers an activity in the CRM history. Can have values true or false. | |
options | Array of additional parameters, contains the following fields:
| from version 12.0.7 |
Returned values
Returns ID of created activity.
Examples
$ID = CCrmActivity::Add($arFields, false, true, array('REGISTER_SONET_EVENT' => true)); if($ID > 0) { CCrmActivity::SaveCommunications($ID, $arComms, $arFields, true, false); }
© «Bitrix24», 2001-2024