I'm trying to figure out how to set my personal gmail for the calendar template, on the property OnStart I stablished this formulas:
Set(_dateSelected, Today());
Set(_firstDayOfMonth, DateAdd(Today(), 1 - Day(Today()), TimeUnit.Days));
Set(_firstDayInView, DateAdd(_firstDayOfMonth, -(Weekday(_firstDayOfMonth) - 2 + 1), TimeUnit.Days));
Set(_lastDayOfMonth, DateAdd(DateAdd(_firstDayOfMonth, 1, TimeUnit.Months), -1, TimeUnit.Days))
;
Set(_calendarVisible, false);
Set( _myCalendar,
LookUp(GoogleCalendar.ListCalendars().items, id = "mygmail@gmail.com"));
Set(_minDate, DateAdd(_firstDayOfMonth, -(Weekday(_firstDayOfMonth) - 2 + 1), TimeUnit.Days));
Set(_maxDate, DateAdd(DateAdd(_firstDayOfMonth, -(Weekday(_firstDayOfMonth) - 2 + 1), TimeUnit.Days), 40, TimeUnit.Days));
ClearCollect(MyCalendarEvents, GoogleCalendar.ListCalendars({}));
Set(_calendarVisible, true);
it doesn't show any error there but for the icons to change the month and the events in the gallery doens't work, any advice?