I've built a Room Reservation app, and one of the features allows you to view your Calendar (using Outlook as a connector). Oddly enough, when I 'play' the app for the first time, I click "Calendar", this error comes up and no events are populated in my calendar:
...and once I go back to the main screen and re-click on Calendar, it populates my Calendar and no error is thrown:
This issue does not exist when my app is in Edit mode. When I click on Calendar for the first time when in Edit mode, everything loads as desired and no error is thrown.
Here is the code for my 'Items' property of the calendar events:
Would anybody know the cause behind the calendar failing to load the first time (when in 'play mode'), but working every time after?
Hi Randy!
Thank you for your response. I tried using V3 (as opposed to V2) and it was still throwing the same error as shown in my screenshots above, just replacing the "V2" text with "V3."
I actually found the issue was my gallery (populated by a collection generated by my OnVisible property) wasn't populating when I first accessed the screen. The expression to collect calendar events was using a variable that had no value when the screen first loaded. We found the variable was coming from the Dropdown control on the calendar screen, and when the OnVisible is first run, there is no selected item for the dropdown so the variable is empty. It was resolved by finding the correct calendar, assigning it to a variable, and using the variable in the ClearCollect() expression.
The issue would seem to be with where you are getting the GetEventsCalendarViewV2 (which by the way is deprecated and V3 should be used).
What is the formula for that action?
WarrenBelz
146,524
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,906
Most Valuable Professional