# Calendar sync rules for Gmail

To start the calendar sync you need to allow Yoxel to access Teamwork and Gmail calendars and then to configure the calendar sync rule.

### Allowing Yoxel to sync calendars

***

To allow Yoxel to sync calendars you need to navigate to your Yoxel sync page (from **'My Profile'** -> **'Integrations'**), expand Teamwork and G Suite services, and make sure that Calendar sync is selected for both services. After selecting Calendar sync modules, click the **Save** button.

### Creating calendar sync rules for Teamwork

***

Expand the calendar rule section for Teamwork:

<figure><img src="/files/8MEG7iG4YzoiaTSGMin0" alt=""><figcaption></figcaption></figure>

You can sync up to one year of past events and two years of future events. By selecting “**Sync private events”** option you will authorize Yoxel to sync your private events to and from Teamwork.\
\
To enable bi-directional sync select **"Allow updating, creating, deleting".** And to enable one-way sync from Teamwork to Gmail select **"Prevent any modifications"** option. This option will not allow Yoxel to sync any changes you make in Gmail back to Teamwork.

### Creating calendar sync rules for Gmail

***

Expand the calendar rule section for G Suite:

<figure><img src="/files/hpUXlXoaGC43fYzcoWPM" alt=""><figcaption></figcaption></figure>

For Gmail you can enable Yoxel to sync either events from primary calendar **“All events from my primary calendar”** option, or only those that are assigned to calendars named after your projects, **“All events from project calendars and”** option. If you choose the second option for syncing, Yoxel creates the project calendars in your Google account and starts syncing your Teamwork events and milestones to them. You can also sync Google events directly to Teamwork projects by creating them in those project calendars in Google.\
\
You can sync up to one year of past events and two years of future events.\
\
\&#xNAN;**"Sync Teamwork meetings as"** is not supported at the moment as Teamwork does not have the "meeting" concept with clear specification of attendees. Please use the second option for now, **"Non-meeting events"**.\
\
To enable bi-directional sync select **"Allow updating, creating, deleting"**. And to enable one-way sync from Gmail to Teamwork select **"Prevent any modifications"** option. This option will not allow Yoxel to sync any changes you make in Teamwork back to Gmail.<br>


---

# 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://helpdocs.yoxel.com/teamwork/yoxel-for-gmail/calendar-sync-rules-for-gmail.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.
