# Upload File

> `UiPath.Salesforce.Activities.UploadFile`

`UiPath.Salesforce.Activities.UploadFile`

Uploads a new file or a new version for an existing file in Salesforce. This activity only functions inside a **Salesforce Application Scope** activity.

## Properties

### Common

* **DisplayName** - The display name of the activity.

### Input

* **Description** - The description of the file you want to upload. This field supports only strings and `String` variables.
* **FilePath** - The full path of the file you want to upload. This field can also be configured from the **Configure** wizard of the activity by browsing for the file on the local machine. This field supports only strings and `String` variables.
* **InputId** - The ID of an existing file on Salesforce to which you want to update with a new version. If an ID of a file that already exists in Salesforce is specified in this property field, a new version is created for it with the file you designated for upload. This property field is optional, and leaving it empty uploads a new file to Salesforce. This field supports only strings and `String` variables.
* **Title** - The title of the file that you want to upload. This field supports only strings and `String` variables.

### Misc

* **Private** - If selected, the values of variables and arguments are no longer logged at Verbose level.

### Output

* **OutputId** - The ID of the file created in Salesforce. If an ID is specified in the **InputId** property field, this field contains the same ID. If a new object is uploaded to Salesforce, its newly generated ID appears here. This field supports only strings and `String` variables.
* **SalesforceStatus** - The status that is returned from Salesforce once the action is completed, stored in a `SalesforceStatus` variable. This field supports only `SalesforceStatus` variables.
* **VersionId** - The ID of the newly created version. This field supports only strings and `String` variables.
