# Add Task Comment

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

`UiPath.Oracle.IntegrationCloud.Process.Activities.AddTaskCommentActivity`

The **Add Task Comment** activity uses the Oracle Integration [Add a Task Comment](https://docs.oracle.com/en/cloud/paas/integration-cloud/rest-api/op-ic-api-process-v1-tasks-id-comments-post.html) API to add a comment (**Comment**) to a specified task (**Task Id**).

After completing the post operation, the activity outputs 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 **Add Task Comment** activity inside the **Oracle Process Scope** activity.
5. Enter values for the **Input** properties.
6. Create and enter `String` variables for the **Output** properties.
7. Run the activity.
   * Your input properties are sent to the [Add a Task Comment](https://docs.oracle.com/en/cloud/paas/integration-cloud/rest-api/op-ic-api-process-v1-tasks-id-comments-post.html) API.
   * The API returns the `String` values to your output property variables.

     ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/legacy-integrations-docs-image-180760-7ba4d180-a972cf45.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 add a comment to. 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)).
* **Comment** - The comment that you want to add to the task. Enter a `String` or `String` variable.
* **Scope** - The visibility level of the comment. Select an item from the drop-down list. There are 2 options:
  + **BPM** - Sets the visibility at the process instance level.
  + **TASK** - Sets the visibility at the task level.

### Misc

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

### Output

* **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)
