> For the complete documentation index, see [llms.txt](https://docs.avonnicomponents.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.avonnicomponents.com/flow/actions/data-manipulation-and-transformation/sobject-collection-to-activity-timeline-items.md).

# SObject Collection to Activity Timeline Items

## Overview

This action simplifies visualizing data from multiple Salesforce objects on a single timeline. Instead of manually combining data from different sources, this action automatically transforms your SObject collections into a format compatible with the [Avonni Timeline component](/flow/flow-components/timeline.md).

***

## How it Helps

Imagine you have customer information spread across various objects like Cases, Opportunities, and custom objects. This action lets you combine that data and display it chronologically on a timeline, giving you a complete picture of the customer journey.

***

## When to Use It

This action is ideal when you need to:

* **Visualize related data from multiple objects.**
* **Present information in a chronological format.**
* **Create timelines without writing custom code.**

***

## Example

To display a timeline of customer interactions, including Tasks, Opportunities, and custom interactions:

1. **Retrieve Records:** Use "Get Records" elements to fetch the relevant data from each object.
2. **Configure the Action:** Map fields from your SObject collections (e.g., Task Subject, Opportunity Name) to the corresponding fields in the Avonni Timeline component (e.g., Title, Description, Date).
3. **Display the Timeline:** Add the Avonni Timeline component to your flow screen to showcase the consolidated timeline.

***

## Key Considerations

* Ensure data types compatibility between your SObjects and the Avonni Timeline component.
* Customize the timeline's appearance using styling options.
* For advanced customization, consider using Apex for data pre-processing.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.avonnicomponents.com/flow/actions/data-manipulation-and-transformation/sobject-collection-to-activity-timeline-items.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
