Create Directory activity
reference australia Updated Sep 10, 2026 1 min read r_CreateDirectoryActivity.md
The Create Directory activity creates a new directory on an SFTP server.
Input variables
| Variable | Description |
|---|---|
| sourceHost | Name or IP address of the server containing the files you want to move. |
| sourcePort | Port number to use to communicate with the source server. The default port number is 22. |
| sourceDirectory | Path to the target directory to create. |
| sourceCredentialTag | Specific Credential aliases for Orchestration activities this activity must use to run SSH commands on the host. |
Output variables
| Variable | Description |
|---|---|
| errorMessage | The executionResult.errorMessages from the Activity designer parsing sources. If this variable is not null, the operation has failed. |
| result | Text message advising that the command was executed successfully. |
Conditions
| Variable | Description |
|---|---|
| Success | The activity succeeded in creating the directory. |
| Failure | The activity failed to create the directory. |
Parent Topic:SFTP File Transfer activity pack
44 lines · 2.0 KB
--- title: Create Directory activity description: The Create Directory activity creates a new directory on an SFTP server. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/integrate-applications/orchestration/r\_CreateDirectoryActivity.html release: australia product: Orchestration classification: orchestration topic_type: reference last_updated: "2026-09-10" reading_time_minutes: 1 breadcrumb: [SFTP File Transfer activity pack, Orchestration activity packs, Classic Orchestration, Workflow Data Fabric] --- # Create Directory activity The Create Directory activity creates a new directory on an SFTP server. ## Input variables |Variable|Description| |--------|-----------| |sourceHost|Name or IP address of the server containing the files you want to move.| |sourcePort|Port number to use to communicate with the source server. The default port number is **22**.| |sourceDirectory|Path to the target directory to create.| |sourceCredentialTag|Specific [Credential aliases for Orchestration activities](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-security/c_AssignCredsOrchActivities.md) this activity must use to run SSH commands on the host.| ## Output variables |Variable|Description| |--------|-----------| |errorMessage|The **executionResult.errorMessages** from the [Activity designer parsing sources](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/integrate-applications/orchestration/t_CreateAParsingRule.md). If this variable is not null, the operation has failed.| |result|Text message advising that the command was executed successfully.| ## Conditions |Variable|Description| |--------|-----------| |Success|The activity succeeded in creating the directory.| |Failure|The activity failed to create the directory.| **Parent Topic:**[SFTP File Transfer activity pack](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/integrate-applications/orchestration/c_OrchestrationSFTPActivityPack.md)
| title | Create Directory activity |
| description | The Create Directory activity creates a new directory on an SFTP server. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/australia/integrate-applications/orchestration/r\_CreateDirectoryActivity.html |
| release | australia |
| product | Orchestration |
| classification | orchestration |
| topic_type | reference |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | SFTP File Transfer activity packOrchestration activity packsClassic OrchestrationWorkflow Data Fabric |