Attach Google Drive files to Calendar events with the Calendar API
Iskander Akishev
Software Engineer, Google Calendar
Try Google Workspace at No Cost
Get a business email, all the storage you need, video conferencing, and more.
SIGN UPThe Google Calendar API allows you to create and modify events on Google Calendar. Starting today, you can use the API to also attach Google Drive files to Calendar events to make them—and your app—even more useful and integrated. With the API, you can easily attach meeting notes or add PDFs of booking confirmations to events.
Here's how you set it up:
1) Get the file information from Google Drive (e.g. via the Google Drive API):
2) Pass this information into an event modification operation using the Calendar API:
Voilà!
You don’t need to do anything special in order to see the existing attachments - they are now always exposed as part of an event:
Check out the guide and reference in the Google Calendar API documentation for additional details.
For any questions related to attachments or any other Calendar API features you can reach out to us on StackOverflow.com, using the tag #google-calendar.