# Get Tasks

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

`UiPath.Oracle.IntegrationCloud.Process.Activities.GetAllTasksActivity`

Using your filter parameters (**Assigned**, **Process Name**, and **Status**), the **Get Tasks** activity calls the Oracle Integration [Retrieve Task List](https://docs.oracle.com/en/cloud/paas/integration-cloud/rest-api/op-ic-api-process-v1-tasks-get.html) API to get the tasks associated with your specified process.

After completing the get operation, the activity outputs the applicable tasks in a `DataTable` object (**Tasks**) 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 the **Get Tasks** activity inside the **Oracle Process Scope** activity.
4. Enter values for the **Filters** input properties.
5. Create and enter a `DataTable` variable and `String` variables for the **Output** properties.
6. Run the activity.
   * Your input properties are sent to the [Retrieve Task List](https://docs.oracle.com/en/cloud/paas/integration-cloud/rest-api/op-ic-api-process-v1-tasks-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-179192-6520b53d-0a7e02a7.webp)

## Properties

### Common

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

### Filters

* **Assigned** - Filters the processes according to the user assignments. Select an item from the drop-down list. There are 3 options:
  + **ADMIN** - Returns all tasks without a filter.
  + **ALL** - Returns all tasks.
  + **PREVIOUS** - Returns tasks that were previously updated by you.
* **Process Name** - The name of the process that you want to retrieve tasks from. Enter a `String` or `String` variable.
* **Status** - The current status of the tasks that you want to retrieve. Select an item from the drop-down list. There are 2 options: **Assigned** and **Completed**.

### Misc

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

### Output

* **Has More Records** - A boolean value that informs you when there are more records than the amount specified in the **Limit** property. Enter a `Boolean` variable
* **Tasks** - The tasks that match your filter property values. Enter a `DataTable` variable.
  + The `DataTable` includes a **Id** column that contains the `Int32` value you can use as an input variable in subsequent activities (e.g., [Add Task Comment](https://docs.uipath.com/activities/other/latest/legacy-integrations/oracle-integration-cloud-process-add-task-comment), [Get Task Attachments](https://docs.uipath.com/activities/other/latest/legacy-integrations/oracle-integration-cloud-process-get-task-attachments)).
  + For example, to create a `Int32` variable for the **Task Id**, you can use an **Assign** activity with the following **Value**: *Int32.Parse(tasks.Rows(0).Item("Id").ToString)* ("tasks" is the `DataTable` variable that you create for this property) or *Int32.Pase(row("Id").ToString)* in a **For Each Row** activity (see the example below).
* **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*.

### Pagination

* **Limit** - The maximum amount of tasks that you want to retrieve. Enter a `Int32` or `Int 32` variable.
* **Offset** - Offset value of the response. Enter a `Int32` or `Int32`variable.

## 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-186902-d3685370-4d8ec3a4.webp)
