> 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-calendar-marked-date-collection.md).

# 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
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-calendar-marked-date-collection.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.
