# Get by ID

### 🎯 **What does this operation do?**

This operation fetches a specific task by its unique identifier within a workspace.

✅ Returns the complete details of a registered task.\
✅ Allows viewing status, description, dates, and assigned users.\
✅ Can be used in automated workflows to retrieve information before performing an action.

***

### 📂 **Fields and Data Types**

| **Field**        | **Data Type** | **Required?** | **Description**                               |
| ---------------- | ------------- | ------------- | --------------------------------------------- |
| **Task ID**      | `string`      | ✅ Yes         | Unique identifier of the task to be queried.  |
| **Workspace ID** | `string`      | ✅ Yes         | ID of the workspace where the task is stored. |

***

### ✅ **Step-by-step to Configure the "Get by ID" Operation**

#### 1️⃣ **Access the Component**

1. In **Hablla Studio**, open the automation flow where you want to fetch a specific task.
2. Add the block **Tasks**.
3. In **right side panel**, select the operation **"Get by ID"**.

#### 2️⃣ **Fill in the Required Fields**

🔹 **Task ID** → Enter the identifier of the task you want to retrieve.\
🔹 **Workspace ID** → Specify the workspace to which the task belongs.

#### 3️⃣ **Save the Configuration**

After filling in the fields, click the **"Save"** ✅.

Now, whenever this automation is triggered, the task's detailed information will be retrieved automatically.

***

### 📌 **Usage Example in an Automation Flow**

📊 **Scenario:** Obtain details of a task before performing an automatic update.

1️⃣ **Block 1** → Receive the task ID from an event or external integration.\
2️⃣ **Block 2** → Fetch the task's full details by ID.\
3️⃣ **Block 3** → Update the task with new information, if necessary.

🚀 **Result:** The automation obtains the necessary task details before any subsequent action.

***

### 🎉 **Conclusion**

The operation **Fetch Task by ID (get\_by\_id)** in the **Hablla Studio** is essential for retrieving accurate information about a task in any automation flow. This functionality allows validating data before updates and facilitates intelligent integrations.

If you need more support, contact our team! 🚀
