Thank you,
I have tried modifying the formula as below and spotted that the format of dates needed to be updated to a UTC format. I have tried this and still no change. The example given in the GetEventsCalendarView is 'startDateTimeOffset: 2020-01-01T08:00:00-07:00'. My Variable is coming out as: '2020-01-01T08:00:00.000Z. Could this be the issue and how to I rectify it?
Here is the the whole OnStart formula:
Set(***Cal,LookUp(Office365Outlook.CalendarGetTables().value, DisplayName = "***").Name);
Set(ForRefCal,LookUp(Office365Outlook.CalendarGetTables().value, DisplayName = "***").Name);
Set(***eventsCal,LookUp(Office365Outlook.CalendarGetTables().value, DisplayName = "***").Name);
Set(UTCdts,Text(DatePicker1.SelectedDate,UTC));
Set(UTCdte,Text(DateAdd(DatePicker1.SelectedDate,23,Hours),UTC));
Set(MyUserId,Office365Users.MyProfile().Id);
Clear(AllFutureEvents); ForAll(Office365Outlook.GetEventsCalendarView(***eventsCal,UTCdts,UTCdte).Values,Collect(AllFutureEvents,{Start:Start,End:End,Location:Location,Subject:Subject,DisplayName:DisplayName}));ForAll(Office365Outlook.GetEventsCalendarView(ForRefCal,UTCdts,UTCdte).Values,Collect(AllFutureEvents,{Start:Start,End:End,Location:Location,Subject:Subject,DisplayName:DisplayName}));ForAll(Office365Outlook.GetEventsCalendarView(***Cal,UTCdts,UTCdte).Values,Collect(AllFutureEvents,{Start:Start,End:End,Location:Location,Subject:Subject,DisplayName:DisplayName}))