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

Okta Workflows how-to guides are questions and answers from weekly community office hours, MacAdmins Workflows Slack channel, and other places. Read all other how-to guides

On to the question. 

How to create an all day event in Google Calendar?

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

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

When using Google Calendar – Create New Event card you pass a date value that holds the date and time for Start Time field and End Time field. This is the flow:

Creating all day event in Google Calendar

All day event created in Google Calendar:

All day Google Calendar event

Another option is to use Google Calendar – Custom API Action card to create an all day event. This is the flow:

Creating all day event in Google Calendar

Object – Construct card creates a JSON object that holds the event title (summary), location (location) and start/end dates. The name of the fields are important (show 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"
   }
}

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

You need to 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 ⠇> Setting and sharing > Integrate calendar. There you will see the calendar ID. It is usually your email address.

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

Now you know two ways to create an all day event in Google Calendar.


More resources to help you learn:

 📺 Short how-to Workflows videos to help you become a better automation builder.

 🍿 A collection of helpful Workflows tips.

Published by

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.