Getting the event ID
Every Google Calendar event has an opaque ID — the string that looks like `abc123xyz@google.com` in the Calendar API, or a shorter variant when accessed through Apps Script. The fastest way to grab it during development is to open the event in Google Calendar, click the three-dot menu, and copy the event link. The ID is the long alphanumeric segment after `eid=`, URL-decoded. In a real script you more often get it by querying events in a date range with `calendar.getEvents(startDate, endDate)` and iterating, then calling `event.getId()` on each one to match by title or other metadata.
One gotcha worth naming: `getEventById` expects the Apps Script event ID, not the raw iCalUID from the Calendar REST API. If you are mixing the two APIs, the formats differ and you will get null back even when the event exists. I hit this the first time I tried to cross-reference a Sheets column full of API-sourced IDs against CalendarApp — had to strip the `@google.com` suffix and still got mismatches until I queried by date range instead.