Skip to content

Trigger

Triggers a new event with the input data and returns the IDs of triggered listener work items.

1
$Domain.Trigger(eventName: string, inputData: ( string | Xml )):Array<string>

Parameters

string eventName
    The name of the event to trigger. Multiple events can be specified with a ";" delimiter.

( string | Xml ) inputData
    The input data to be sent to listeners.

Returns

An array of the IDs of the triggered listener work items.

Remarks

If the input data is not an instance of Xml or a string, an exception is thrown.
If no listeners are triggered, an empty array is returned.

See Also