# Save To Clipboard

This is a pre-built Action located under the **@Generic Element**. The functionality of this action in Avo Assure is to extract the data provided in the input value and copy it to the clipboard. The result is stored in the given dynamic variable for further use during test execution.

## **Syntax**&#x20;

**Input Value**: `<Data to save on clipboard>` &#x20;

| Argument                                          | Description                                                |
| ------------------------------------------------- | ---------------------------------------------------------- |
| <p>\<Data to save on clipboard><br>(Required)</p> | Provide the value which you want to save in the clipboard. |

**Output Value**: `<Dynamic Variable>;<Dynamic Variable>(Optional)`&#x20;

| Argument                                          | Description                                                       |
| ------------------------------------------------- | ----------------------------------------------------------------- |
| \<Dynamic Variable>;\<Dynamic Variable>(Optional) | Both dynamic variable stores the status as **True** or **False**. |

### **Example 1: Saving Data to the System Clipboard**

In this example, we explain how to save a specified value to the system clipboard for later use during test execution.

* **Action**: Save To Clipboard
* **Input Value**: Invoice 3457
  * The argument (**Invoice 3457**) specifies the exact data that will be copied to the system clipboard using this action.
* **Output Value**: {Status}
  * The result of the save clipboard operation is stored in the **{Status}** dynamic variable with the following possible values:
    * **True**: If the data is saved to the system clipboard successfully.
    * **False**:  If the data is not saved to the system clipboard successfully.
* **Logical Explanation**: The **Save To Clipboard** action reads the value from the **Input Value** column (**Invoice 3457**). It copies this value to the system clipboard, making it available for use in subsequent steps during execution. The outcome of this operation (True) is stored in the **{Status}** variable.

<figure><img src="/files/A1vUysL8VOYk6vc0X3XK" alt=""><figcaption></figcaption></figure>

#### **Example 2: Copying a Dynamic Variable Value to the Clipboard**

In this example, we explain how to copy the value stored in a dynamic variable to the system clipboard for later use during execution.

* **Action**: Save To Clipboard
* **Input Value**: {Order No}
  * The argument (**{Order No}**) specifies the dynamic variable whose value needs to be copied to the system clipboard.
* **Output Value**: {Status}
  * The execution status of this action is stored in the **{Status}** dynamic variable, with the following possible values:
    * **True**: If the value is copied successfully.
    * **False**: If the value is not copied successfully.
* **Logical Explanation**: The **Save To Clipboard** action reads the value from the **Input Value** column (**{Order No}**). It copies this value to the system clipboard, making it available for use in subsequent steps during execution. The result of this operation (True) is stored in the **{Status}** variable.

{% hint style="info" %}
**Note**: In this example, a test step with the **Create Dynamic Variable** action is used to verify that the dynamic variable contains a value before copying it to the clipboard.
{% endhint %}

<figure><img src="/files/IjFb73Kj3RRP7jBhyuXI" alt=""><figcaption></figcaption></figure>


---

# 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.avoautomation.com/avo-assure/actions/generic/other-operations/save-to-clipboard.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.
