# SObject Collection to Scheduler Events

## **Overview**

This action simplifies displaying events from multiple Salesforce objects on the [Avonni Calendar](https://docs.avonnicomponents.com/flow/flow-components/calendar) 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.
