Extract Data from SFTP Files Task
What's on This Page:
About Extract Data from SFTP Files Task
The Extract data from SFTP files task allows you to import data from your SFTP server to use in Qualtrics. You can combine this task with other tasks, such as the Load data to XM Directory task, to import data into the B2B Command Center and other places in Qualtrics.
Connecting a SFTP Account
Before you can use the Extract Data from SFTP Files Task, you must connect an SFTP account for Qualtrics to extract the data from. Accounts may be added by Brand Administrators for other users in the brand to use, or by individual users for their personal use.
Qtip: When setting up an SFTP connection, we recommend your IT team Allowlist the Qualtrics IP Ranges. Use the following IP Ranges to Allowlist:
- EMEA and Asia Pacific: 139.60.152.0/22
- All other regions: 162.247.216.0/22
Adding an Account as a Brand Administrator
If you are a Brand Administrator, follow the steps in this section to add an SFTP account for some or all users in your license to use.
- Navigate to the Admin tab.
- Go to Extensions.
- Click the Extract data from SFTP files extension.
- Click Add Account.
- Give the account a name. This name is used for organizational purposes and to identify the account.
- Enter the Hostname of the associated SFTP server.
Example: Commonly these are in the format of sftp.example.com
- Enter the Port number. Usually, this is 22.
- Enter your username and password for the SFTP server.
- Click Connect Account.
Adding an account as an Individual User
Follow the steps in this section to add an SFTP account for your personal use. Only you will be able to use the account that you connect.
- Follow the steps in Setting Up an Extract Data from SFTP Files Task section until you get to the step where you select an account to use.
- Click Add user account.
- Give your account a name. This name is used for organizational purposes and to identify the account.
- Enter the Hostname of the associated SFTP server.
Example: Commonly these are in the format of sftp.example.com
- Enter the Port number. Usually, this is 22.
- Enter the username and password for the SFTP server.
- Click Connect account.
Setting up an Extract Data from SFTP Files Task
- Navigate to the Actions page.
- Click Create an action.
- Select Scheduled.
- If desired, rename your action.
- Determine when the scheduled action fires. See scheduled actions for more information about setting up scheduled actions.
- Click Add new.
- Select Task.
- Choose the Extract data from SFTP files task.
- Choose the SFTP account to extract files from. Any accounts added by Brand Administrators, as well as accounts you’ve added yourself, will be listed here.
- If you want to add new SFTP account credentials, click Add new account and follow the steps in the connecting an SFTP account section.
- Click Next.
- Enter the File name pattern, which is used to identify what files to process by looking at the file’s prefix. All files with your specified prefix will be processed. Enter the desired prefix into the box.
Example: Let’s say I have a file called Qualtrics-DataImport.csv. I can enter “Q” or “Qualtrics” as the prefix, depending on if there are other files in the server I want to process. - Enter the Pickup directory or the directory path to find the file on the server. You may enter either a relative path or an absolute path.
Qtip: This directory path is case sensitive and must point to an existing folder or the action will fail. Qualtrics will not be able to access files if they’re in a higher level directory than the one specified in the pickup directory.
Example: Depending on the path you enter, potential pickup directories could be:
- /home/username/myFolder (absolute path)
- myFolder (relative path)
- Choose the Delimiter for the SFTP files to be processed. Your options include comma, semicolon, tab, and pipe.
- Choose what you’d like to happen after the file is processed. Your options include:
- Delete the processed file: After processing the file, Qualtrics deletes it from your SFTP server. This option is enabled by default.
- Keep the processed file: After processing the file, Qualtrics leaves the file on your SFTP server.
- Click Choose file and upload a sample file, which will tell Qualtrics the fields you want to import, and will determine the subsequent tasks you can use with this task. The file you upload should contain the fields you want to import as part of this task.
Qtip: Download the sample files in the task, or download the files in the example files section for templates on how to structure your data based on your use case.
- Click Upload.
- Double check that your file is importing the data correctly. If you need to change your settings, click Back at the top of the task.
- If your data looks correct, click Save.
- Click Add new, select Task, and set up the task that should follow your SFTP data extraction.
Example Files
Below are example files for how to structure your data for import, depending on the type of data you want to import. Click on a file name to download the example file.