Метод resolveAutomationInitiatorUserId

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу строки 747–752
~/bitrix/modulescrm/lib/Service/Operation.php

Исходный код

PHP
public

Сигнатура метода

public function resolveAutomationInitiatorUserId(): int

Возвращает: int

Описание

Returns the user who initiated the change for the automation or bizproc workflow being launched. Robots and workflow activities inherit this user as the author of their own changes, so in non-interactive scopes, where the ambient user is not the actor, the launch goes without an initiator and falls back to the system user.