Using Google Apps Script, I am trying to create an Event in `CalendarApp` and store a Link to the event in a spreadsheet.

To create a link to the event I need to get the event ID, however using `event.getID()` in Google Apps Script returns the incorrect event ID.

Format for the link should be:

```
https://calendar.google.com/calendar/event?eid={eventID}=%7BAmerica/Chicago%7D

```

Event ID should look something like:

> 
> tmFmbHZydmU1aDBDZGhlYmMwaWdqcW1wZGMgdDY1HT6yhuHI5YXJwYW5lMHV2OTYzamtAZw
> 
> 
> 

`getID()` is returning this:

> 
> 065cvve58nriutnkuses332fkf@google.com
> 
> 
> 

```
var event = CalendarApp.getCalendarById(calID).createAllDayEvent(eventName, new Date (eventDate));
var eventID = event.getId();
var eventLink = "https://www.google.com/calendar/event?eid=" + eventID + "&ctz={America/Chicago}";
Logger.log(eventLink);

```

Why is GAS returning the ID in this format?