# Execute Connection Command

{% hint style="info" %}
**Block Information**

Available in: Page Flow and Cloud Flow

Toolbox Category: Connections

Block Type: [Regular](/app-editor/page-flow/block-anatomy.md#regular-block)
{% endhint %}

The **`Execute Connection Command`** block is used to invoke a [command/operation](/app-editor/connections.md#operation-commands) on a [connection](/app-editor/connections.md) of your app.

<div align="left"><figure><img src="/files/erMICUEH4Fa1CqY7vddo" alt="" width="437"><figcaption><p>Execute Connection Command block</p></figcaption></figure></div>

{% hint style="success" %}
Use the [Execute API Call](/app-editor/page-flow/toolbox-blocks/execute-api-call.md) block for invoking the [API Call service](/app-editor/connections/services/api-call.md) based [connections](/app-editor/connections.md).
{% endhint %}

The block consists of the following (from top to bottom)::

* *Connection Name:* [Value Parameter](/app-editor/page-flow/block-anatomy.md#value-parameters) that accepts a [*text*](/app-editor/page-flow/references/value-types.md) value representing the name of the [connection](/app-editor/connections.md) to use.
* *Command:* [Value Parameter](/app-editor/page-flow/block-anatomy.md#value-parameters) that accepts a [*text*](/app-editor/page-flow/references/value-types.md) value representing the [command/operation](/app-editor/connections.md#operation-commands) of the [connection](/app-editor/connections.md) to use.
* *Data*: Optional [Value Parameter](/app-editor/page-flow/block-anatomy.md#value-parameters) that accepts an [object](/app-editor/page-flow/references/value-types.md) value representing the data to be used when invoking the command/operation. Refer to the specific commands documentation for further details.
* *Success Tasks*: a [Flow Parameter](/app-editor/page-flow/block-anatomy.md#flow-parameters) where you connect blocks that specify what you want done when the operation completes successfully. The [Connection Data](/app-editor/page-flow/toolbox-blocks/connection-data.md) block can be used to access the output of the command/operation.
* *Fail Tasks*: a [Flow Parameter](/app-editor/page-flow/block-anatomy.md#flow-parameters) where you connect blocks that specify what you want done when the operation reports an error. The [Connection Error](/app-editor/page-flow/toolbox-blocks/connection-error.md) block can be used to access the error information.

***

## Usage Example

The image below shows an example of the **`Execute Connection Command`** block where the command *iccPaymentIntent1* ( [Create Payment Intent](/app-editor/connections/services/stripe.md#create-payment-intent) ) is invoked for an amount of 100.

<figure><img src="/files/iitukWpVggr2wfIu9KGs" alt=""><figcaption><p>Example of Execute Connection Command block</p></figcaption></figure>

Upon success, the [Get Object Property](/app-editor/page-flow/toolbox-blocks/get-object-property.md) block is used to access the *client\_secret* and *publishable\_key* properties from the [Connection Data](/app-editor/page-flow/toolbox-blocks/connection-data.md) block which represents the output of the command. The *client\_secret* and *publishable\_key* properties are called to the function *process payment.*

If there was an error with the operation, the [Show Information Popup](/app-editor/page-flow/toolbox-blocks/show-information-popup.md) block is used to show the error information.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.zingy.ai/app-editor/page-flow/toolbox-blocks/execute-connection-command.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
