# Create a horizontal activity timeline

## Overview

This page walks you through building an activity timeline that shows a list of tasks using the horizontal orientation. The users can scroll, zoom, hover and click to visualize related data.&#x20;

## Result

The final result looks like this:

<figure><img src="https://27923732-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1FUd4apB9YHgCEMUFbVb%2Fuploads%2FGaDlX7RkcnVKM2wBIpk1%2F2022-10-05_11-20-31.png?alt=media&#x26;token=e929614f-60ad-4045-9732-2c33558e6262" alt=""><figcaption></figcaption></figure>

## Steps

The steps to build a horizontal activity timeline that displays a list of tasks are as follows:

### 1. Create the Get Records collection

The very first step starts with creating our Get Records collection to ask Flow Builder to fetch all the Task records by following the below steps:

* **Add a Get Records** element to fetch all tasks data
* Enter a collection Label
* Add the **Task Object**
* Select "**`None - Get all Task Records`**" in the condition requirements field
* Select "**`All Records`**" regarding the number of records to display
* Click "**Done**"

{% @arcade/embed flowId="De6OSS81OekRdCpCm6Bz" url="https://app.arcade.software/share/De6OSS81OekRdCpCm6Bz" %}

### 2. Add the Activity Timeline component

* Drag the **Activity Timeline component** from the components list to our screen flow (located under the custom section)
* Enter an **API Name**. For example, _ActivityTimeline_.

{% @arcade/embed flowId="xaNh8CS4qf5C1H8QdZmQ" url="https://app.arcade.software/share/xaNh8CS4qf5C1H8QdZmQ" %}

### 3. Configure the Activity Timeline

* Click on the **Open Component Builder** button to access all the settings for the Activity Timeline component
* **Enter a title** for the component (e.g: Tasks)
* **Set the Orientation** to **`Horizontal`**.
* Under the Data Source section, **select Variable** to assign our previously created Get Records collection
* Under Source Collection, **click on the GetTask collection** we created in step 1
* Under the Data Mapping section, let's do our fields mapping
  * **Title** => Task.Subject
  * **Description** => Task.Description
  * **Name** => [Task.Id](http://task.id/) (Activity ID)
  * **Icon Name** => standard:task (switch to Manual to select an icon manually)
  * **Date** => Task.DueDate

{% @arcade/embed flowId="Ug2cTeIgWc7OiswwROpo" url="https://app.arcade.software/share/Ug2cTeIgWc7OiswwROpo" %}

