Attach File
UiPath.Smartsheet.Activities.Comments.AttachFile
Uses the Smartsheet Post an Attachment API to attach a file to a row, comment, or sheet via upload.
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.
- Complete the Setup steps.
- Add the Smartsheet Application Scope activity to your project.
- Add the Attach File activity inside the Smartsheet Application Scope activity.
- Create and enter values for the Input properties.
- Create and enter values for Output properties.
- Create and enter an
ResponseStatusvariable for the Output property.
In the Body of the Activity
- Parent Type - The type of object to attach the file to. Select one of the following options: Sheet, Row, Comment. 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.
- Sheet Id - The Id of the sheet. Enter a
Int64orInt64variable. - File - Path of the file to upload. Enter a
StringorStringvariable. - Row Id - The Id of the Row. Enter a
Int64orInt64variable. Either Comment Id or Row Id can be used, but not both. - Comment Id - The Id of the Comment. Enter a
Int64orInt64variable. Either Comment Id or Row Id can be used, but not both. - Attach as new version - If you want this to be a new version of the attachment. Enter a
booleanorbooleanvariable. This will only work with Sheets and Rows. - Attachment Id - The id of the attachment to update as new version. Enter a
Int64variable. This is only needed if Attach as new Version property is True. - Attachment - The attachment object. Enter an
Attachmentvariable.
Properties
Common
- DisplayName - The display name of the activity. This field supports only
StringsorStringvariables.
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
ResponseStatusvariable.