---
sourceDocument: Yokohama Data and Automation
sourceDocumentLink: https://www.servicenow.com/docs/r/yokohama/integrate-applications

 Release :

    - yokohama

ft:locale :

    - en-US

ft:publication_title :

    - Yokohama Data and Automation

ft:clusterId :

    - crint

bundleId :

    - crint

workflow :

    - Creator


---

# Use the UploadAttachment component

# Use the UploadAttachment
component {#ariaid-title1}

* Release version: Yokohama
* 
* Updated January 30, 2025
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

Attach documents to a table record in the RPA Hub by using the UploadAttachment component in the RPA Desktop Design Studio.

## Before you begin

You must have access to the required ServiceNow table to upload attachments.

Role required: none

## About this task

A table in the RPA Hub contains one or more records and each record
provides certain information. Attachments can provide additional, useful information
about the record. The maximum size of the attachments is 1024 MB.

You can configure the properties for the UploadAttachment component. For more
information about these properties, see [Properties of the Attachment components](https://www.servicenow.com/docs/aZR_3wd4Yvfhydjnc95~dA "Learn about the various properties of the Attachment components.").

## Procedure

1. In the Toolbox pane, navigate to ServiceNowAttachments.
2. Drag the UploadAttachment component to the Design surface.
3. To configure the input fields, see [Configure port properties](https://www.servicenow.com/docs/d92L75lHSFmmidzeOPPgTw "Configure how data is passed to the input fields of a component or method in RPA Desktop Design Studio.").
4. Connect the data and control ports of the UploadAttachment component to the corresponding ports of the other components.  
   {#use-rpahub-attachments-uploadattachment__table_jnw_jn1_krb__entry__4}

   | Port name | Description | Data Port type | Data type |
   |-|-|-|-|
   | filePath | The path to the file that must be uploaded to the record from a previously executed component. | Data In | String |
   | SysId | The sys ID of the record to upload the attachment to. You can also pass this value from a previously executed component. You can get the sys ID of a record following these steps: 1. Select the record in the connected ServiceNow instance and right-click the header bar. 2. Select Copy URL. 3. In the URL, you can find the sys ID after the parameter sys_id=. For example, 9d385017c611228701d22104cc95c371. {#use-rpahub-attachments-uploadattachment__ol_bpj_wwl_g2c} | Data In | String |
   | tableName | Takes the table name that comprises the record from a previously executed component. | Data In | String |
   | Return | Returns the Boolean response on whether the file was successfully uploaded and passes to the next component. | Data Out | Boolean |
   [ ]

   {#use-rpahub-attachments-uploadattachment__table_jnw_jn1_krb}
5. **Optional:** To test the component, under the DESIGN tab, click Run.

*[\>]: and then


