# SObject Collection to Calendar Marked Date Collection

## Overview

This action streamlines the process of highlighting important dates on an Avonni Date Picker component. It takes data from your Salesforce objects and automatically converts it into a format that the [Date Picker](/flow/flow-components/date-picker.md) understands, making it easy to mark key dates visually.

***

## **How it Helps**

Imagine you want to show upcoming opportunity close dates on a calendar. This action lets you easily pull those dates from your opportunity records and display them as marked dates on the Date Picker, giving your users a clear visual overview.

***

## **When to Use It**

This action is perfect for:

* **Highlighting key dates from any Salesforce object.**
* **Visualizing deadlines, events, or milestones on a calendar.**
* **Improving the user experience of the Avonni Date Picker.**
* **Avoiding complex code or workarounds for marking dates.**

***

## **Example**

To display all upcoming Task due dates for a Contact on a calendar:

1. **Retrieve Tasks:** Use a "Get Records" element to fetch the Contact's Tasks.
2. **Configure the Action:** Select the Task collection and map the "Due Date" field.
3. **Display on the Date Picker:** Connect the action's output to the "Marked Dates" attribute of the Avonni Date Picker component.

***

## **Key Considerations**

* Ensure the date field you select is valid for the chosen object.
* Customize the appearance of marked dates using styling options.
* For advanced date manipulation, use formulas or Apex before using the action


---

# Agent Instructions: 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:

```
GET https://docs.avonnicomponents.com/flow/actions/data-manipulation-and-transformation/sobject-collection-to-calendar-marked-date-collection.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
