Documentation

checkFields

 \Bitrix\Main\Result public
\Bitrix\Crm\Activity\Provider\Base::checkFields(
$action, &$fields, $id, $params = null
);

Method called when when adding or updating an activity. Returns instance of class \Bitrix\Main\Result. Can modify activity fields when required (for example, to calculate deadline yes/no field). Static method.

Parameters

ParameterDescriptionVersion
$actionString, ADD|UPDATE.
$fieldsFields for added/updated activity.
$idActivity ID.
$paramsAdditional parameters with which main method is called CCrmActivity::CheckFields.

Example



© «Bitrix24», 2001-2024