This is a improved version of Thomas Franks code to sync Notion and Google Calendar using Pipedream's workflow.
Click here to see her full tutorial.
Just paste the code in the "Code" section of "Notion_Settings" sep in Pipedream's workflow.
New Notion pages will no more trigger an error when:
- The Date property is not defined.
- The End Date property is not defined (Sets the end date 2 hours forward).
- The Notion page is an all day event.