---
title: "execute · RUAL Documentation"
description: "Executes the given funcion and waits for it to be executed."
canonical: https://docs.rual.nl/block-types/function%20execution/function_custom_execute_from_trigger
language: en
---

# execute

This block is part of the [`function execution`](https://docs.rual.nl/block-types/function%20execution) group and was last modified in core [`v10.4.28`](https://docs.rual.nl/core-versions/100428).

### Function Selection Required

This block requires you to choose a custom function to execute when triggered. You must manually select the function you want to use using the function selector modal. To access the modal, click the white button on the block.

Executes the given funcion and waits for it to be executed.

- function required `execute_function`

System block that executes the action's referenced function synchronously from a trigger context: input pin values (including values read from connected upstream pins) are passed in, returned pins map onto this block's outputs, and any output the function did NOT return receives the FIRST returned value. Fails with success=false and error MISSING_EXECUTOR or MISSING_FUNCTION when misconfigured.

| `from function` |
| --- |
| `custom function` |

Wiring the function pin of [On API GET](https://docs.rual.nl/block-types/http%20connection/on_startup_register_uri_get) creates an [execute](https://docs.rual.nl/block-types/function%20execution/function_custom_execute_from_trigger) block: it roots the request handler chain and carries the endpoint parameters as out pins (connection, params, query). The flow pin starts the handler, the connection pin feeds [get query](https://docs.rual.nl/block-types/http%20connection/httpconnection_get_query) here.

![Studio canvas example for the execute block: the handler block behind an endpoint.](https://docs.rual.nl/canvas-examples/function_custom_execute_from_trigger.png)

### Commonly used with

One of the most-used blocks across production blueprints. It is most often wired together with:

- [On API GET](https://docs.rual.nl/block-types/http%20connection/on_startup_register_uri_get): feeds into this block. Exposes GET URI on /api/.

- [on api post](https://docs.rual.nl/block-types/http%20connection/on_startup_register_uri_post): feeds into this block. Exposes POST URI on /api/.

- [on api delete](https://docs.rual.nl/block-types/http%20connection/on_startup_register_uri_delete): feeds into this block. Exposes URI on /api/.

- [on api put](https://docs.rual.nl/block-types/http%20connection/on_startup_register_uri_put): feeds into this block. Exposes URI on /api/.

- [foreach](https://docs.rual.nl/block-types/foreach/function_foreach): feeds into this block.

- [line stop](https://docs.rual.nl/block-types/line%20stop/value_line_stop): feeds into this block. gives you the option to position lines better to have an nicer and a more cleanded up Blueprint.

### Version history

Introduced in [`v10.4.28`](https://docs.rual.nl/core-versions/100428).

- [Back to `function execution`](https://docs.rual.nl/block-types/function%20execution): Return to the main group to view all sub-groups

- [Back to `function`](https://docs.rual.nl/block-types/function%20execution?group=function): Return to the group to view all blocks within this group
