Show Menu
TOPICS×

Transfer file

Description

The Transfer file activity allows you to receive or send files, test whether there are files present, or list files in Adobe Campaign.

Context of use

The way in which the data will be extracted is defined when the activity is configured. The file to load may be a list of contacts, for example.
You can use this activity to recover data that will then be structured with the Load file activity.
Related topics:

Configuration

  1. Drop a Transfer file activity into your workflow.
  2. Select the activity, then open it using the button from the quick actions that appear.
  3. Use the drop-down list in the Action field to select one of the following activity actions:
    • File download : allows you to download a file.
    • File upload : allows you to upload a file. Uploading a file from Adobe Campaign file generates a log entry in the Export audits menu. For more information on export audits, refer to the Auditing exports section.
    • Test to see if file exists : allows you to check whether there is a file.
    • File listing : allows you to list the files present on the server defined in the Protocol tab. This action is mainly used for debugging purposes, to check if the activity is configured according to your needs before downloading the files from the remote server.
  4. Select the protocol you want to use:
  5. The Additional options section, available depending on the protocol selected, allows you to add parameters to your protocol. You can:
    • Delete the source files after transfer
    • Disable passive mode
    • List all files : this option is available when selecting the File listing action.in the General tab. It allows you to index all the files present on the server in the vars.filenames event variable in which the file names are separated by the 'n' characters.
  6. The If no files are found section of the Advanced options tab allows you to configure specific actions if any errors or inexistent files are detected when the activity is started.
    You can also define retries. The different retries appear in the workflow execution log.
  7. Confirm the configuration of your activity and save your workflow.

Configuration with HTTP

The HTTP protocol allows you to start downloading a file from an external account or from a URL.
With this procotol, you can choose to Use connection parameters defined in an external account option. In this case select the account you would like and specify the path of the file to download.
You can also choose the Quick configuration option. You only need to enter the URL in the URL field.

Configuration with SFTP

The SFTP protocol allows you to start downloading a file from a URL or an external account.
With this procotol, you can choose to Use connection parameters defined in an external account option, then select the account you would like and specify the path of the file to download.
Wildcards are supported.
You can also choose the Quick configuration option. You only need to enter the URL in the URL field.

Configuration with Amazon S3

The Amazon S3 protocol allows you to start downloading a file from a URL or an external account via Amazon Simple Storage Service (S3).
  1. Select an Amazon S3 external account. For more on this, refer to this page .
  2. Choose if you want to Define a file path or Use a dynamic file path .
  3. Specify the path of the file to download.
  4. If you want to delete your source files when transfer is completed, check Delete the source files after transfer .

Configuration with Microsoft Azure Blob storage

The Microsoft Azure Blob protocol allows you to access blob located on a Microsoft Azure Blob Storage account.
  1. Select a Microsoft Azure Blob external account. For more on this, refer to this page .
  2. Choose if you want to Define a file path or Use a dynamic file path .
  3. Specify the path of the file to download, it can match multiple blobs. In that case, the File transfer activity will activate the outgoing transition once per blob found. They will then be processed in alphabetical order.
    Wildcards are not supported to match multiple file names. Instead, you need to enter a prefix. All blob names matching that prefix will be eligible.
    You can find below a list of file paths' examples:
    • "campaign/" : matches all blobs in the Campaign folder located at the root of the container.
    • "campaign/new-" : matches all blobs with a file name starting with "new-" and located under the Campaign folder.
    • "" : adding an empty path allows you to match all the blobs available in the container.

Configuration with files present on the Adobe Campaign server

The File(s) present on the Adobe Campaign server protocol corresponds to the repository containing the file(s) to recover. Metacharacters, or wildcards (for example * or ?) can be used to filter files.
Choose if you want to Define a file path or Use a dynamic file path The Use a dynamic file path option, lets you use a standard expression and events variables to personalize the name of the file to transfer. For more on this, refer to this section: Customizing a workflow with external parameters .
Please note that the path must be relative to the storage space directory of the Adobe Campaign server. Files are located in the sftp<yourinstancename>/ directory. You also cannot browse the directories above the storage space. For example:
  >**user&lt;yourinstancename>/my_recipients.csv** is correct.
      >
      >**../hello/my_recipients.csv** is incorrect.
      >
      >**//myserver/hello/myrecipients.csv** is incorrect.

Historization settings

Every time a Transfer file activity is executed, it stores the uploaded or downloaded files in a dedicated folder. One folder is created for each Transfer file activity of a workflow. Therefore, it is important to be able to limit the size of this folder in order to preserve physical space on the server.
To do that, you can define Historization settings in the Advanced options of the Transfer File activity.
Historization settings allow to define a maximum number of files or total size for the activity's folder. By default, 100 files and 50 MB are authorized.
Every time the activity is executed, the folder is checked as follows:
  • Only files created more than 24 hours before the execution of the activity are taken into account.
  • If the number of files taken into account is greater than the value of the Maximum number of files parameter, the oldest files are deleted until the Maximum number of files allowed is reached.
  • If the total size of files taken into account is greater than the value of the Maximum size (in MB) parameter, the oldest files are deleted until the Maximum size (in MB) allowed is reached.
If the activity is not executed again, its folder will not be checked nor purged. With this in mind, be cautious when transferring large files.