---
title: "trigger event · RUAL Documentation"
description: "Event is executed when the storage receives an event relevant update (removed, created, updated or saved)."
canonical: https://docs.rual.nl/block-types/storage/storage_event
language: en
---

# trigger event

This block is part of the [`storage`](https://docs.rual.nl/block-types/storage) group and was last modified in core [`v13.0.9`](https://docs.rual.nl/core-versions/130009).

### Storage Selection Required

This block relies on a storage to perform its storage releated actions. You must manually select the storage you want to use in your flow using the storage selector modal. To access the modal, click the white button on the block.

Event is executed when the storage receives an event relevant update (removed, created, updated or saved).

- flow `flow`

- Current Document `object` The most recent document at the time of this event being executed.

- Storage `storage` The storage this document has been triggered on.

- Revisions `v10.6.1` `array ` The revisions triggering this event.

- Fields modified `v10.6.1` `array` The fields modified triggering this event.

- User guids `v13.0.9` `array` Array containing all known caller user guids. Can be empty if a user guid is unknown (e.g. document was updated in the queue or by an anonymous user)

A typical wiring for [trigger event](https://docs.rual.nl/block-types/storage/storage_event): the `flow` out pin feeds [execute](https://docs.rual.nl/block-types/function%20execution/function_custom_execute); the `object` out pin feeds [get fields](https://docs.rual.nl/block-types/object/object_field_getter_multiple).

![Studio canvas example for the trigger event block: typical wiring for trigger event.](https://docs.rual.nl/canvas-examples/storage_event.png)

### Commonly used with

In production blueprints, this block is most often wired together with:

- [execute](https://docs.rual.nl/block-types/function%20execution/function_custom_execute): this block feeds into it. Executes the given funcion and waits for it to be executed.

- [get fields](https://docs.rual.nl/block-types/object/object_field_getter_multiple): this block feeds into it. Gets the selected fields from the given object.

- [delete](https://docs.rual.nl/block-types/redis/function_redis_cache_delete_key): this block feeds into it. Removes the specified key and their values.

- [get guid](https://docs.rual.nl/block-types/object/object_get_guid): this block feeds into it. Returns the guid (field: _meta.guid) of the given object.

### Version history

Introduced in [`v13.0.9`](https://docs.rual.nl/core-versions/130009).
