Skip to content

$Initiator

Represents the identity that initiated the workflow instance.

Unlike $ActiveUser, this value remains associated with the instance even when system scripts or later participants execute it. System-created instances can have no initiator, in which case this global is null.

1
const $Initiator: ( Identity | null );

Examples

Store the initiator in the process data

1
2
3
4
if ($Initiator) {
    $Xml.SetValue('Request/RequestedBy', $Initiator.Id);
    $Xml.SetValue('Request/RequestedByName', $Initiator.Name);
}