---
sourceDocument: Australia ServiceNow AI Platform Capabilities
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/de-DE/servicenow-platform

 Release :

    - australia

ft:locale :

    - de-DE

ft:publication_title :

    - Australia ServiceNow AI Platform Capabilities

ft:clusterId :

    - platcap

bundleId :

    - platcap

workflow :

    - Platform


---

# Copy File activity

# Copy File activity {#ariaid-title1}

* Freigeben Version: Australia
* 
* Aktualisiert 12. März 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 Minute Lesedauer

The Copy File activity copies a file from an SFTP server (source host) to another SFTP
server (target host).

## Input variables

{#r_CopyFileActivity__table_wwy_xzw_mt__entry__2}

| Variable | Description |
|-|-|
| sourceHost | Name or IP address of the server containing the files you want to transfer. |
| sourcePort | Port number to use to communicate with the source server. The default port number is 22. |
| sourceFilePath | Full path to the file to copy from the source host. |
| targetHost | Name or IP address of the server to which you want to move the files. |
| targetPort | Port number to use to communicate with the target server. The default port number is 22. |
| targetFilePath | Full path to the copied file on the target host. |
| tempFileSuffix | Temporary suffix to use when moving a file. If this field contains a value, the activity deletes the duplicate target file, if it exists, and then copies the source file to a temporary file using targetFilePath + tempFileSuffix as the name. Upon completion, the activity renames the file to the actual target file name. If this field is blank, the activity copies the source file directly to the target file and overwrites it, if it already exists. |
| sourceCredentialTag | Specific [Credential aliases for Orchestration activities](https://www.servicenow.com/docs/access?context=c_AssignCredsOrchActivities&version=australia&pubname=australia-platform-security&ft:locale=en-US) this activity must use to run SSH commands on the source host. |
| targetCredentialTag | Specific credential tag this activity must use to run SSH commands on the target host. |
[Tabelle : 1. Copy File input variables]

{#r_CopyFileActivity__table_wwy_xzw_mt}

## Output variables

{#r_CopyFileActivity__table_rnt_gcx_mt__entry__2}

| Variable | Description |
|-|-|
| errorMessages | The executionResult.errorMessages from the [Activity designer parsing sources](https://servicenow-prod.fluidtopics.net/jecuRsCuzIyfFDyPkB_Ehw#r_ActivityDesignerParsingSources "This table lists the parsing sources available with each execution template."). If this variable is not null, the operation has failed. |
| result | Text message advising that the command was executed successfully. |
[Tabelle : 2. Copy File output variables]

{#r_CopyFileActivity__table_rnt_gcx_mt}

## Conditions

{#r_CopyFileActivity__table_obv_tcx_mt__entry__2}

| Condition | Description |
|-|-|
| Success | The activity succeeded in copying the file. |
| Failure | The activity failed to copy the file. |
[Tabelle : 3. Copy File conditions]

{#r_CopyFileActivity__table_obv_tcx_mt}

