web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / 'Office365Outlook.GetE...
Power Apps
Answered

'Office365Outlook.GetEventsCalendarViewV2' fails the first run, but works every time after

(0) ShareShare
ReportReport
Posted on by

 

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:

 

jharville_4-1636042511995.png

 

jharville_3-1636042472515.png

 

...and once I go back to the main screen and re-click on Calendar, it populates my Calendar and no error is thrown:

 

jharville_5-1636042629554.png

 

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:

 

jharville_0-1636043164191.png

 

Would anybody know the cause behind the calendar failing to load the first time (when in 'play mode'), but working every time after?

 

 

 

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @jharville 

    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?

  • Verified answer
    jharville Profile Picture
    on at

    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.

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 366 Most Valuable Professional

#2
11manish Profile Picture

11manish 184

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 99 Super User 2026 Season 1

Last 30 days Overall leaderboard