Create an SFTP activity
- UpdatedFeb 1, 2024
- 12 minutes to read
- Washington DC
- Orchestration
Create an activity that executes basic SFTP commands on a remote server.
Before you begin
Roles required: activity_creator or workflow_admin
About this task
Procedure
What to do next
- Use auto-mapping to generate outputs and parsing rules (recommended for JDBC)
- If you do not use auto-mapping, you can manually create output variables and create parsing rules
SFTP template execution parameters
You use execution parameters to create the input process script in the Preprocessing form.
executionParam. prefix with all variables in
this table.| Name | Variable | Type | Usage |
|---|---|---|---|
| Command | command | String | Identifies the function of this activity. The possible commands are:
|
| Source | source | String | Identifies the source host. |
| Source port | source_port | Integer | Identifies the port used to communicate with the source host. |
| Source directory | source_directory | String | Path to the source directory of the files to be moved. |
| Source files | source_files | String | Names of the files on the source to be moved. |
| Excluded files | excluded_files | String | Lists the files excluded from the operation. |
| Source file path | source_file_path | String | Path to the source files to be moved. |
| Target host | target_host | String | Identifies the target host. |
| Target port | target_port | Integer | Identifies the port used to communicate with the target host. |
| Target directory | target_directory | String | Full path to the target directory on the target host. |
| Target file path | target_file_path | String | Full path to a file or directory on the source host or on the target host. For example, this value is used in the Rename File or Directory activity in the activity pack. |
| Temp file postfix | temp_file_postfix | String | Temporary file name extension used by the Copy File activity when moving a file. If this field contains an extension, the source file is copied to a temporary file using target file name + temp_file_postfix, before being renamed to the actual target file. If this field is blank, the source file is copied directly to the target file. |
| Is directory | is_directory | Boolean | Indicates whether the given file path is a directory. |
| Include subfolders | include_subfolders | Boolean | Indicates whether the system looks into subfolders of the source directory for files to include and exclude. |
| File attribute uid | file_attribute_uid | Integer | User ID associated with a file or directory. |
| File attribute gid | file_attribute_gid | Integer | Group ID associated with a file or directory. |
| File attribute permissions | file_attribute_permissions | Integer | File or directory permissions for the user and group specified. |
| File attribute atime | file_attribute_atime | Integer | Access time stamp from the file attributes. |
| File attribute mtime | file_attribute_mtime | Integer | Modification time stamp from the file attributes. |
| File attribute size | file_attribute_size | Integer | Size of the file, in bytes. |
| Source credential tag | source_credential_tag | String | Credential aliases for Orchestration activities used to run the command on the source host. |
| Target credential tag | target_credential_tag | String | Credential tag used to run the command on the target host. |
| MidCapabilities | midCapabilities | String (comma separated) | List of required MID Server capabilities. |
SFTP post-processing parameters and payload parsing
Use these parameters to create a post-processing script, payload parsing, and tagging.
| Name | Variable | Type | Usage |
|---|---|---|---|
| Output | output | String | Contains output data returned by the query. |
| EccSysId | eccSysId | String | Contains the Reference ID associated with the ECC Queue input message. |
| ErrorMessages | errorMessages | String | Contains the error messages returned from the query. If no error messages are returned, this value is null. |
| Tags | tags | Hashmap of tag values returned from the SSH command | Contains the tags used to extract output using the SSH commands. The tag
output is delimited by double percentage signs, as in %%tagname%% …
%%. Set up the command using the following
format:The
tags returned are JavaScript hashmap objects in which each key is prefixed with
tag appended with the
tagname. |
Configure the SFTP execution command
Use the input variables you created to configure the command that Orchestration executes on the SFTP target.
Before you begin
Role required: activity_creator, admin
Procedure