• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/integration/crm/timeline/event/ontaskadded.php
  • Класс: BitrixTasksIntegrationCRMTimelineEventOnTaskAdded
  • Вызов: OnTaskAdded::getPayload
public function getPayload(): array
{
	return [
		'TASK_FILE_IDS' => $this->getFiles($this->task->getId(), Task::class),
		'TASK_ID' => $this->task->getId(),
		'AUTHOR_ID' => $this->task->getCreatedBy() ?? $this->userId,
		'RESPONSIBLE_ID' => $this->task->getResponsibleId(),
		'REFRESH_TASK_ACTIVITY' => false,
		'TASK_RESTORED' => $this->restored,
		'IMMEDIATELY' => true,
	];
}