> ## Documentation Index
> Fetch the complete documentation index at: https://domoinc-openapi-sync-dataflows.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# SFTP Writeback Connector

## Intro

Use this connector to export your data from a Domo

DataSet to an SFTP server. To learn more about SFTP, visit the Wikipedia page at [https://en.wikipedia.org/wiki/SSH\_Fi...nsfer\_Protocol](https://en.wikipedia.org/wiki/SSH_File_Transfer_Protocol "https://en.wikipedia.org/wiki/SSH_File_Transfer_Protocol").

You export data to an SFTP server in the Data Center. This topic discusses the fields and menus that are specific to the SFTP Writeback connector user interface. General information for adding DataSets, setting update schedules, and editing DataSet information is discussed in [Adding a DataSet Using a Data Connector](/s/article/360042926274 "Adding a DataSet Using a Data Connector").

<Note>
  **Note:** The owner of a writeback dataset must also be an owner or co-owner of the input dataset.
</Note>

## Prerequisites

To configure this connector, you will need the following:

* A Domo Client ID and Client Secret.
* Your SFTP server hostname.

<Warning>
  **Important:** The SFTP Server host name must have **sftp\://** in the beginning of the URL and should not end with a **front slash (/)**.
</Warning>

* Your SFTP server port number.
* Your SFTP server username and password.
* Your SFTP server SSH private key.
* The passphrase for your SSH private key.

<Note>
  **Note: Domo does not support the SSH keys generated using ssh-keygen. The SSH keys need to be the DES or RSA keys (in PEM format) generated by OpenSSL.**
</Note>

OpenSSH private key format can be converted using ssh-keygen utility to the old PEM format.

```bash theme={"dark"}
ssh-keygen -p -m PEM -f ~/.ssh/id_rsa 
```

This will update the same file with the RSA key.

### To obtain your Domo Client ID and Client Secret, do the following:

1. Login to [Domo developer account](https://developer.domo.com/login "Domo developer account")
2. In the top right corner under **My Account,** click **New Client.**
3. Enter the application name and description.
4. Provide the application scope by selecting **Account**, **Data**, and **User**.
5. Click **Create.**
6. Once you have created a client, you can manage the client by clicking on **Manage Client.**
7. Your **Client Secret** will appear in the **Manage Client** section.

## Configuring the Connection

This section enumerates the options in the **Credentials** and **Details** panes in the SFTP Writeback Connector page. The components of the other panes in this page, **Scheduling** and **Name & Describe Your DataSet**, are universal across most connector types and are discussed in greater length in [Adding a DataSet Using a Data Connector](/s/article/360042926274 "Adding a DataSet Using a Data Connector").

### Credentials Pane

This pane contains fields for entering credentials to connect to your Domo developer account as well as your SFTP server. Depending on the configuration of the SFTP server, you may need either a Private Key and Passphrase, username and password, or both. The following table describes what is needed for each field:

<table border="1" cellpadding="1" cellspacing="1" data-aura-rendered-by="33:201;a"><thead><tr><th colspan="1" rowspan="1"><p><span class="s1"> Field </span></p></th><th colspan="1" rowspan="1"><p><span class="s1"> Description </span></p></th></tr></thead><tbody><tr><td colspan="1" rowspan="1"><p> Domo Client ID </p></td><td colspan="1" rowspan="1"><p> Enter your Domo client ID. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Domo Client Secret </p></td><td colspan="1" rowspan="1"><p> Enter your Domo client secret. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Hostname </p></td><td colspan="1" rowspan="1"><p> Enter your SFTP server hostname. </p> <Warning><div class="info-box-wrapper"><div class="info-box-icon-container" /><div class="info-box-content-container"><div class="info-box-content"><b> Important: </b> The SFTP Server host name must have <b> sftp\:// </b> in the beginning of the URL and should not end with a <b> front slash (/) </b>. </div></div></div> </Warning></td></tr><tr><td colspan="1" rowspan="1"><p> Port </p></td><td colspan="1" rowspan="1"><p> Enter your SFTP server port number. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Username </p></td><td colspan="1" rowspan="1"><p> Enter your SFTP server username. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Password </p></td><td colspan="1" rowspan="1"><p> Enter your SFTP server password. </p></td></tr><tr><td colspan="1" rowspan="1"><p> SSH Private Key </p></td><td colspan="1" rowspan="1"><p> Enter your SFTP server SSH private key (RSA). </p></td></tr><tr><td colspan="1" rowspan="1"><p> Passphrase </p></td><td colspan="1" rowspan="1"><p> Enter the passphrase for your SSH private key. </p></td></tr></tbody></table>

Once you have entered valid credentials, you can use the same account any time you go to set up a new Domo-SFTP connection. You can manage connector accounts in the **Accounts** tab in the Data Center. For more information about this tab, see [Managing User Accounts for Connectors](/s/article/360042926054 "Managing User Accounts for Connectors").

### Details Pane

This pane contains a number of fields for specifying your data and indicating where it's going.

<table border="1" cellpadding="1" cellspacing="1" data-aura-rendered-by="33:201;a"><thead><tr><th colspan="1" rowspan="1"><p> Menu </p></th><th colspan="1" rowspan="1"><p> Description </p></th></tr></thead><tbody><tr><td colspan="1" rowspan="1"><p> Input DataSet ID </p></td><td colspan="1" rowspan="1"><p> Enter the DataSet ID (GUID) for the DataSet you want to copy to the SFTP server. You can find the ID by opening the details view for the DataSet in the Data Center and looking at the portion of the URL following <span class="mt-font-courier-new"> datasources/ </span>. For example, in the URL <span class="mt-font-courier-new"><span class="nowiki"><a href="https://mycompany.domo.com/datasources/845305d8-da3d-4107-a9d6-13ef3f86d4a4/details/overview" rel="noopener" target="_blank"> [https://mycompany.domo.com/datasources/845305d8-da3d-4107-a9d6-13ef3f86d4a4/details/overview](https://mycompany.domo.com/datasources/845305d8-da3d-4107-a9d6-13ef3f86d4a4/details/overview) </a></span></span>, the DataSet ID is <span class="mt-font-courier-new"> 845305d8-da3d-4107-a9d6-13ef3f86d4a4. </span></p> <Note><div class="info-box-wrapper"><div class="info-box-icon-container" /><div class="info-box-content-container"><div class="info-box-content"><b> Note: </b> You must either own this DataSet or have the Admin role in Domo. </div></div></div> </Note></td></tr><tr><td colspan="1" rowspan="1"><p> Path </p></td><td colspan="1" rowspan="1"><p> Enter the path in your SFTP server where you would like the data to be saved. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Select the Filename </p></td><td colspan="1" rowspan="1"><p> Select the output filename. <br /><br /> If you choose <b> Use Input Dataset Name </b> and your dataset name contains a macro \<current\_date>, then the connector will replace \<current\_date> with today's date in the format selected from the <b> Date Format </b> dropdown. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Filename </p></td><td colspan="1" rowspan="1"><p> Enter the output file name for your data. <br /><br /> If you wish to add the current date to the file name, then use the \<current\_date> macro. <br /> For example: If the file name is <b> domo\_\<current\_date> </b>, then the output file generated in SFTP would be domo\_(today's date in the format selected from the <b> Date Format </b> dropdown). If the Date Format is selected as <b> MMddyyyy\_HHmmss </b>, the output file generated would be <b> domo\_05162021\_161244 </b>. </p><p> You also have the option to fetch the data any number of days back from the current date. </p><p> For example, if you want to fetch yesterday's data, then you need to enter the file name as <b> domo\_\<current\_date-1> </b>, and the format of the output file generated in SFTP would be domo\_date format selected for previous day from Date Format drop-down. </p><ul><li><b> domo\_\<current\_date-2> </b> - <b /> fetches the data the day before yesterday. </li><li><b> domo\_\<current\_date-3> </b> - fetches the data two day's before with respect to the current date. </li></ul> <Note><div class="info-box-wrapper"><div class="info-box-icon-container" /><div class="info-box-content-container"><div class="info-box-content"><b> Note: </b> Your output file is stored as a CSV file. You do not need to add the extension onto your file name. </div></div></div> </Note></td></tr><tr><td colspan="1" rowspan="1"><p> Date Format </p></td><td colspan="1" rowspan="1"><p> Select the date format for the macro replacement in the filename. This option is only applicable when the 'File Name' or 'Input Dataset Name' contains \&ltcurrent\_date\&gt. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Include Advanced Function </p></td><td colspan="1" rowspan="1"><p> Select this checkbox to include the Advanced Functions. </p></td></tr><tr><td colspan="1" rowspan="1"><p> File Extension </p></td><td colspan="1" rowspan="1"><p> This field appears when you select the <b> Include Advanced Functions </b> checkbox. </p><p> Select the extension you want to use for your output file. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Enter File Extension </p></td><td colspan="1" rowspan="1"><p> This field appears when you select the <b> Include Advanced Functions </b> checkbox and the File Extension as <b> User Defined Extension </b>. </p><p> Enter the file extension. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Delimiter </p></td><td colspan="1" rowspan="1"><p> This field appears when you select the <b> Include Advanced Functions </b> checkbox. </p><p> Select the character to be used as a delimiter for your output file. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Enter Delimiter </p></td><td colspan="1" rowspan="1"><p> This field appears when you select the <b> Include Advanced Functions </b> checkbox and the Delimiter as <b> Other </b>. </p><p> Enter the character to be used as a delimiter for your output file. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Quote Character </p></td><td colspan="1" rowspan="1"><p> This field appears when you select the <b> Include Advanced Functions </b> checkbox. </p><p> Select the character to be used for enclosing values in your output file. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Quote Character </p></td><td colspan="1" rowspan="1"><p> This field appears when you select the <b> Include Advanced Functions </b> checkbox and the Quote Character as <b> Other </b>. </p><p> Enter the character to be used as a quote character for your output file. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Line Feed Delimiter </p></td><td colspan="1" rowspan="1"><p> This field appears when you select the <b> Include Advanced Functions </b> checkbox. </p><p> Select the character to be used as a line feed delimiter in your output file. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Line Feed Delimiter </p></td><td colspan="1" rowspan="1"><p> This field appears when you select the <b> Include Advanced Functions </b> checkbox and the Line Field Delimiter as <b> Other </b>. </p><p> Enter the character that should be used as a line feed delimiter for your output file. </p></td></tr><tr><td colspan="1" rowspan="1"><p> File Encoding </p></td><td colspan="1" rowspan="1"><p> This field appears when you select the <b> Include Advanced Functions </b> checkbox. </p><p> Select the encoding scheme for your output file. </p></td></tr><tr><td colspan="1" rowspan="1"><p> Skip Headers </p></td><td colspan="1" rowspan="1"><p> Select this checkbox if you want to skip the header of your output file. </p></td></tr><tr><td colspan="1" rowspan="1"><p> My Domo Input DataSet is very large. </p></td><td colspan="1" rowspan="1"><p> Select this checkbox to export a very large DataSet from Domo to SFTP. When this checkbox is selected, the connector uses a different and faster process. The export process does not support Advanced functions. </p></td></tr></tbody></table>

### Other Panes

For information about the remaining sections of the connector interface, including how to configure scheduling, retry, and update options, see [Adding a DataSet Using a Data Connector](/s/article/360042926274 "Adding a DataSet Using a Data Connector").
