Sync Deputy shifts to Google Calendar as block events

Developer ToolAPI IntegrationMarketingProductivitySales Enablement

What it does

When someone publishes shifts in Deputy, a webhook catches the shift array and fetches employee data for each shift. This automation creates two block events on each employee's Google Calendar and clears old events first.

Who it's for

Operations teams who need shift changes reflected instantly in employee calendars without manual updates.

How teams use this

Sync Deputy shifts to employee calendars

Publish shifts in Deputy and have them appear as block events on each employee's Google Calendar in real time. No manual calendar updates are needed.

Prevent calendar conflicts with blocking

Create two block events per shift so employees cannot accidentally book personal time during their scheduled hours. Add a second event to block the time slot completely.

Keep calendars current by clearing old shifts

Clear the calendar before adding new shifts so outdated or cancelled shifts do not remain visible. Only the latest published schedule appears.

How it works

  1. Catch published shifts from Deputy. A webhook receives an array of shift objects in real time when someone publishes shifts in Deputy.
  2. Fetch roster and employee records via REST. Retrieve the roster and all employee records through REST API calls so email addresses and shift details are available for each person.
  3. Clear existing events from employee calendars. Remove all existing events from each employee's Google Calendar so only the newly published shifts remain visible.
  4. Create block events for each shift. For each shift in the array, create two block events on the employee's Google Calendar using their email address and shift details.