# Clone Leave Request One Down Head Entity

This section explains how to **clone the Leave Request entity** and customize it for the **One Down / Head role**.\
The One Down / Head entity is used by the **next‑level approver after Supervisor / PM**, who needs to **review PM decisions and make their own approval decision**.

***

### Objective

By completing this section, you will learn how to:

* Clone an existing Supervisor PM entity
* Enable Supervisor PM data for review
* Enable One Down / Head decision fields for approval
* Prepare a Head‑level approval screen for Process Designer

***

### Step 1: Clone Supervisor PM Entity

1. From **ONEWEB App Designer**, go to\
   **Entities > Clone Entity**
2. In **Select Existing Entity**, choose:

   ```
   Doc Leave Request Supervisor PM
   ```
3. Set **Name of Clone Entity** to:

   ```
   Doc Leave Request One Down Head
   ```
4. Click **Clone**
5. When the success message is displayed, click **Open Cloned Entity**
6. In the **Search Entities** popup, click the **Pencil icon** to edit the cloned entity

***

### Step 2: Enable Supervisor / PM Decision for Review

#### Field: **Supervisor / PM** (Dynamic List)

1. Go to module **Leave Request**
2. Locate field **Supervisor/PM**
3. Click the **Pencil icon**

Configure:

* **viewFlag** = `Y`

1. Click **OK**

This allows One Down / Head to **view PM’s decision**.

***

### Step 3: Enable Supervisor / PM Remark for Review

#### Field: **Supervisor / PM Remark** (Text Box)

1. Click the **Pencil icon**
2. Set:
   * **viewFlag** = `Y`
3. Click **OK**

***

### Step 4: Enable One Down / Head Decision Field

#### Field: **One Down / Head** (Dynamic List)

1. Click the **Pencil icon**
2. Configure:
   * **viewFlag** = `N`
3. Click **OK**

Setting `viewFlag = N` enables this field for **active decision making** by the One Down / Head role.

***

### Step 5: Enable One Down / Head Remark Field

#### Field: **One Down / Head Remark** (Text Box)

1. Click the **Pencil icon**
2. Configure:
   * **viewFlag** = `N`
3. Click **OK**

This allows the approver to enter remarks along with their decision.

***

### Final Result

The completed **Doc Leave Request One Down Head** entity appears as shown below:

<figure><img src="https://docs.oneweb.tech/oneweb/~gitbook/image?url=https%3A%2F%2F2015371994-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FMpDjHWFRUtZ5nJcSfVXd%252Fuploads%252FPZuqg1IPSCWgmpHWMObY%252Fimage.png%3Falt%3Dmedia%26token%3D929ba524-4049-4a0b-8467-ccbafce022b9&#x26;width=768&#x26;dpr=1&#x26;quality=100&#x26;sign=f3c31d47&#x26;sv=2" alt=""><figcaption></figcaption></figure>

***

### Summary

In this section, you have:

* Cloned the **Supervisor PM entity** for One Down / Head usage
* Enabled PM decision and remarks for review
* Enabled One Down / Head decision and remark fields for approval
* Prepared a clean, role‑appropriate approval screen

This entity is now ready to be linked to **Process Designer** as the **One Down / Head approval step** in the Leave Control workflow.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.onewebstack.com/tutorials-examples/leave-control-app/app-designer/clone-leave-request-one-down-head-entity.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
