# Attach URL

> Activity for attaching a file to a Smartsheet row, comment, or sheet via URL

`UiPath.Smartsheet.Activities.Comments.AttachURL`

Uses the Smartsheet [Attach URL to Comment](https://smartsheet-platform.github.io/api-docs/?csharp#attach-url-to-comment) API to attach a file to a row, comment, or sheet via URL.

## How it works

The following steps are an example of how the activity works from design time (i.e., the activity dependencies and input/output properties) to run time.

1. Complete the [Setup](https://docs.uipath.com/activities/other/latest/legacy-integrations/smartsheet-setup) steps.
2. Add the [Smartsheet Application Scope](https://docs.uipath.com/activities/other/latest/legacy-integrations/smartsheet-scope) activity to your project.
3. Add the **Attach URL** activity inside the **Smartsheet Application Scope** activity.
4. Create and enter values for the [Input](https://docs.uipath.com/activities/other/latest/legacy-integrations/smartsheet-attach-url#attach-url) properties.
5. Create and enter values for [Output](https://docs.uipath.com/activities/other/latest/legacy-integrations/smartsheet-attach-url#attach-url) properties.
6. Create and enter an `ResponseStatus` variable for the [Output](https://docs.uipath.com/activities/other/latest/legacy-integrations/smartsheet-attach-url#attach-url) property.

## In the Body of the Activity

* **Parent Type** - The type of object to attach the file to. Select one of the following: Sheet, Row, Comment.
* **SheetId** - The Id of the sheet. Enter a `Int64` or `Int64` variable.
* **URL** - URL to attach. Enter a `String` or `String` variable.
* **RowId** - The Id of the Row. Enter a `Int64` or `Int64` variable. Either Comment Id or Row Id can be used, but not both.
* **CommentId** - The Id of the Comment. Enter a `Int64` or `Int64` variable. Either Comment Id or Row Id can be used, but not both.
* **Attachment Type** - The type of attachment. Select one of the following options: BOX_COM, DROPBOX*, EGNYTE*, EVERNOTE*, FILE, GOOGLE_DRIVE, LINK, or ONEDRIVE. The list of optional input parameters will show/hide depending on the value of this property, e.g. will show only the required elements for a Sheet, Row, or Comment.
* **Name** - Attachment name. Enter a `String` or `String` variable.
* **Description** - Attachment description. Enter a `String` or `String` variable. Applicable when attaching to sheet or row only.
* **Attachment** - The id of the attachment. Enter a `Attachment` variable.

## Properties

### Common

* **DisplayName** - The display name of the activity. This field supports only `Strings` or `String` variables.

### Misc

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

### Output

* **ResponseStatus** - The status of the request (success/failure information). Enter a `ResponseStatus` variable.
