# Get Task Attachments

> `UiPath.Oracle.IntegrationCloud.Process.Activities.GetTaskAttachmentsActivity`

`UiPath.Oracle.IntegrationCloud.Process.Activities.GetTaskAttachmentsActivity`

The **Get Task Attachments** activity uses the Oracle Integration [Retrieve Task Attachments](https://docs.oracle.com/en/cloud/paas/integration-cloud/rest-api/op-ic-api-process-v1-tasks-id-attachments-get.html) API to retrieve a list of the attachments associated with the specified task (**Task Id**).

After completing the get operation, the activity outputs the attachment details in a `DataTable` object (**Attachments**) along with the API call status (**Status**) and response message (**Response Message**).

## How it works

The following steps and message sequence diagram is 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/oracle-integration-cloud-process-setup) steps.
2. Add the [Oracle Process Scope](https://docs.uipath.com/activities/other/latest/legacy-integrations/oracle-integration-cloud-process-oracle-process-scope) activity to your project.
3. Add an activity or run an external process that outputs the task identifier (e.g., [Get Tasks](https://docs.uipath.com/activities/other/latest/legacy-integrations/oracle-integration-cloud-process-get-tasks)).
4. Add the **Get Task Attachments** activity inside the **Oracle Process Scope** activity.
5. Enter a value for the [Input](https://docs.uipath.com/activities/other/latest/legacy-integrations/oracle-integration-cloud-process-get-task-attachments#get-task-attachments) property.
6. Create and enter a `DataTable` variable and `String` variables for the [Output](https://docs.uipath.com/activities/other/latest/legacy-integrations/oracle-integration-cloud-process-get-task-attachments#get-task-attachments) properties.
7. Run the activity.
   * Your input property value is sent to the [Retrieve Task Attachments](https://docs.oracle.com/en/cloud/paas/integration-cloud/rest-api/op-ic-api-process-v1-tasks-id-attachments-get.html) API.
   * The API returns the `DataTable` and `String` values to your output property variables.

     ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/legacy-integrations-docs-image-178163-b519e64c-1b39c6e8.webp)

## Properties

### Common

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

### Input

* **Task Id** - The identifier assigned to the task that you want to retrieve attachments from. Enter a `String` or `String` variable. To get the **Task Id** value, add an activity or run an external process that outputs the process identifier (e.g., [Get Tasks](https://docs.uipath.com/activities/other/latest/legacy-integrations/oracle-integration-cloud-process-get-tasks)).

### Misc

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

### Output

* **Attachments** - The list of attachments associated with the specified task. Enter a `DataTable` variable. The table below shows the process details included in the `DataTable` object.
* **Response Message** - The API response message. Enter a `String` variable
* **Status** - The status of the request. Enter a `String` variable. Possible values are *Success* or *Failure*.

## Example

The following image shows an example of the activity dependency relationship and input/output property values.

  ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/legacy-integrations-docs-image-187098-144e8406-14f14c9d.webp)
