> 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-scheduler-events.md).

# SObject Collection to Scheduler Events

## Overview

This action simplifies displaying events from multiple Salesforce objects on the [Avonni Calendar](/flow/flow-components/calendar.md) component. It takes data from your various objects and converts it into a format the calendar can understand, allowing you to show a unified view of all scheduled events.

***

## How it Helps

Imagine you need to see a combined view of standard Events, custom "Training Sessions," and even Tasks on a single calendar. This action does the heavy lifting of combining those different data sources and displaying them seamlessly on the Avonni Calendar.

***

## When to Use It

This action is ideal for:

* **Consolidating events from multiple objects into a single calendar view.**
* **Visualizing events from standard and custom objects.**
* **Simplifying event management within your flows.**
* **Avoiding the need for custom code to display events on the calendar.**

***

## Example

To display standard Events and custom "Training Sessions" for a user on a calendar:

1. **Retrieve Records:** Use "Get Records" elements to fetch the relevant Events and "Training Sessions."
2. **Configure the Action:** Map fields from your SObject collections (e.g., Subject, Start Date, End Date) to the Avonni Calendar event fields.
3. **Display the Calendar:** Add an Avonni Calendar component to your flow screen and connect the action's output.

***

## Key Considerations

* Ensure data type compatibility between your SObjects and the Avonni Calendar.
* Customize the appearance of events using styling options.
* For advanced customization or complex event logic, 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-scheduler-events.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.
