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:

All day event created in Google Calendar:

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

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.
Leave a Reply