# Write CSV

This action can write a CSV file.

## **Properties**

<figure><img src="https://649489153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MSSr3DfBuOYIkk2T9ec%2Fuploads%2Fx85bHR9bdyY4O9mxyEfj%2Fimage.png?alt=media&#x26;token=692e1e82-3ed9-4895-9264-d3f6b08dff8d" alt=""><figcaption></figcaption></figure>

### **Input**

* **File Name**: The name of CSV file that will be generated.
* **Input**: The name of the variable used to evaluate the evaluate the input.

{% hint style="info" %}
**Note:** The variable must be a DataTable.
{% endhint %}

### **Misc**

* **Display Name**: action display name in your implementation project.
* **Wait Before**: number milliseconds robot to wait before executing the action.
* **Wait After:** number milliseconds robot to wait until moving to the next action.
* **Abort on Error**: True/False
* **Retry Times**: Specifies the number of times to retry an action if it doesn't end successfully. Default value 0 (no retry); Use -1 if you want to retry indefinitely.&#x20;

## **Use Case**

### **Potential Use Cases**

* Write the gathered data from an automation in a CSV file.

### **Examples of Using Write CSV**

**Example**&#x20;

Watch the robot in action:

{% embed url="<https://www.youtube.com/watch?v=fSEaCyECdOY>" %}

You can check and download the example from here:

{% file src="<https://649489153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MSSr3DfBuOYIkk2T9ec%2Fuploads%2F3m65CYU3Ds7fFIIZy0iy%2FWrite%20CSV.zip?alt=media&token=ed8449f2-2060-40bc-80d1-7df0d961eb66>" %}
