# SoftEvent Data

Use the SoftEvent Data Block to access data associated with a SoftEvent that was passed in using the SoftEvents.TriggerObject function via a script. See the topic SoftEvents for details on SoftEvents.

When the Block runs, if the Task Mode is set to either Event or Multi-Event and the Task was triggered by a SoftEvent with the same Id as the Block's SoftEvent Id , then Data is formatted according to the specified Output Type parameter, and then associated to the output pin.

Note: The SoftEvent Data Block does not have any input pins. The output pin is determined by the Output Type parameter.

Setting | Description
--- | ---
Output Type | Sets the data type, any valid Type. The default Type is Object.
SoftEvent Id | Sets the SoftEvent associated with the block. (0-3). For example, a setting of 1 will retrieve data from SoftEvents.Event1. Note: This will be restricted to SoftEvents used to Trigger the Task containing the block.
Suppress Error | Setting this to true will prevent the Block from raising an exception which would prevent the Task from completing. If set to false, the Block will raise an exception if the Data passed by the SoftEvent.TriggerObject function is not compatible with the Output Type.