Updating All Day events to dateTime in Google Calendar

When you want to update a Google Calendar event, you can’t have “date” and “dateTime” defined at the same time.

If you update an All Day event to a dateTime event, you get an error. And vice versa.

See references:

google calendar api - Change an event from all-day to time-limited - Stack Overflow
Google Calendar doesn't update event to All Day

So I thought about erasing date and dateTime before updating the event with the new values.

How can I do that?

Information on your n8n setup

  • n8n version: 1.20.0
  • Database: SQLite
  • n8n EXECUTIONS_PROCESS setting: default
  • Running n8n via: Docker
  • Operating system: ubuntu

Hi @gmsalomao2, it doesn’t look like n8n’s Google Calendar node can make this kind of request.

So I suggest you simply go for the HTTP Request node here to set start.dateTime, start.date, and the end equivalents at the same time as suggested in the StackOverflow post you have linked.

Like so:

This changes the event as expected. Before running the workflow:

image

After running the workflow:

image

Hope this helps!

2 Likes

That’s awesome! Thanks :muscle:
I’m gonna try that.

1 Like

Worked like a charm! Solved my flow. Thank you!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.