# Assign File

> `UiPath.Salesforce.Activities.AssignFile`

`UiPath.Salesforce.Activities.AssignFile`

Assigns a file to a record in Salesforce with user defined sharing and visibility settings, returning a status of the operation. This activity only functions inside a **Salesforce Application Scope** activity.

## Properties

### Common

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

### Input

* **Id** - The ID of the file that you want to attach to the Salesforce Object record. This field supports only strings and `String` variables.
* **RecordId** - The ID of the Salesforce Object record that you want to attach to the file. This field supports only strings and `String` variables.
* **ShareType** - The sharing type of the file. This field should be set to a valid value as supported by Salesforce. This field supports only strings and `String` variables.
* **Visibility** - The visibility of the file. This field should be set to a valid value as supported by Salesforce. 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

* **SalesforceStatus** - The status that is returned from Salesforce once the action is completed, stored in a `SalesforceStatus` variable. This field supports only `SalesforceStatus` variables.
