# Get Process Instance Attachments

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

`UiPath.Oracle.IntegrationCloud.Process.Activities.GetProcessInstanceAttachmentsActivity`

The **Get Process Instance Attachments** activity uses the Oracle Integration [Retrieve Attachment List](https://docs.oracle.com/en/cloud/paas/integration-cloud/rest-api/op-ic-api-process-v1-processes-processid-attachments-get.html) API to retrieve a list of the attachments associated with the specified process (**Process 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 process identifier (e.g., [Start Process](https://docs.uipath.com/activities/other/latest/legacy-integrations/oracle-integration-cloud-process-start-process), ).
4. Add the **Get Process Instance Attachments** activity inside the **Oracle Process Scope** activity.
5. Enter values for the **Input** properties.
6. Create and enter a `DataTable` variable and `String` variables for the **Output** properties.
7. Run the activity.
   * Your input properties are sent to the [Retrieve Attachment List](https://docs.oracle.com/en/cloud/paas/integration-cloud/rest-api/op-ic-api-process-v1-processes-processid-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-187530-82dfa0e1-744406e0.webp)

## Properties

### Common

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

### Input

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

### 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 process. Enter a `DataTable` variable.
* **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-187106-91323f69-755c61e7.webp)
