<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content

How to Create an All Day Event in Google Calendar Using Workflows

Workflows
Okta Classic Engine
Okta Identity Engine

Overview

In this article, learn how to create an all-day event in Google Calendar.

There are two ways to create an all-day event in Google Calendar:

  • Using the Google Calendar – Create New Event card
  • Using the Google Calendar – Custom API Action card

Applies To

  • Okta Workflows

Solution

Create New Event card

All-day event created in Google Calendar:

All-day event created in Google Calendar

 

Custom API Action card

The Object – Construct card creates a JSON object with the event title (summary), location (location), and start/end dates. The names of the fields are important (shown by arrows).


Test the card to see the JSON object created. It looks like this:

{   "summary": "💈Employee Training",   "start": {      "date": "2022-10-07"   },   "location": "Conference room 2",   "end": {      "date": "2022-10-07"   }}

Custom API Action card uses an existing connection to a service (Google Calendar in this example) and allows calling any API endpoint supported by Google Calendar API.

Set the Relative URL field and any other parameters required by the API.

When calling Google Calendar API, set the Relative URL field to /v3/calendars/calendarID/events. To get a calendar’s calendarID, select the dots menu ()> Setting and sharing > Integrate calendar. The calendar ID should be seen there. It is usually the email address.

So, the API endpoint will be /v3/calendars/name@company.com/events.

 

Related References

Loading
Okta Support - How to Create an All Day Event in Google Calendar Using Workflows