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 / Calendar App, permissi...
Power Apps
Unanswered

Calendar App, permission error: getEventsCalendarViewV3

(0) ShareShare
ReportReport
Posted on by 24

Hey guys, 

 

im having permission issues regarding the pilot test of my calendar app. 

Whenever coworkers start my app some sort of error is occurring. 

 

This error is  Calendar ID related since the first error stated the following: 

Office365Outlook.GetEventsCalendarViewV3 failed: The method 'GetEventsCalendarViewV2' has an invalid value for parameter 'calendarId'

 

The current error is a bit different, after trying my hardest to get the calendar id of a group calendar the current error looks like this: 

Office365Outlook.GetEventsCalendarViewV3 failed: The specified object was not found in the store 

 

The Code which tells my app which calender to get is like this:

Set(_lastDayOfMonth, DateAdd(DateAdd(_firstDayOfMonth, 1, TimeUnit.Months), -1, TimeUnit.Days));
If(_lastDayOfMonth > _maxDate, Set(_maxDate, _lastDayOfMonth); Collect(MyCalendarEvents, Office365Outlook.GetEventsCalendarViewV3("XXXXXXXXXXXXXXXX", Text(_firstDayOfMonth, DateTimeFormat.UTC), Text(_maxDate, DateTimeFormat.UTC)).value))

X = Calendar ID

 

What i already tried:

- Using V3 instead of V2 since the V2 seems to be outdated 

- Different types of ways to get the same result as the code above 

- Asked several coworkers who have more experience in power apps but none could provide a solution


Others things you might need to know:

- Two SharePoint lists as data sources

- Office365Outlook, Office365Users, MyCalendarEvents are the connectors 

- The code above is being used 5 times in total in my app (Four Times in on select property of  back and forward arrows and one time in an invisible calendar dropdown selector) 

 

I'd really appreciate it if one could help me out on this, thanks in advance!

Categories:
I have the same question (0)
  • jconnelly Profile Picture
    75 on at

    Hi ShogunMorty, 

    Did you first set the table to lookup the id of the calendar ? I have found that it cannot be in App OnStart, so try putting it in the OnVisible - try this: 

    Set(_myCalendar, Lookup(Office365Outlook.CalendarGetTablesV2().value, name="calendar").id);

    Then you can use _myCalendar for the ID that the ViewV3 needs.

    ClearCollect(

        MyCalendarEvents,

        Office365Outlook.GetEventsCalendarViewV3(

    _myCalendar,

    etc.

    That worked for me.

  • ShogunMorty Profile Picture
    24 on at

    Hey jconelly,

    i have removed the outlook power apps connection since i had a deadline i had already overstepped. 

    But i will try your solution on the copy of my app, to see if it works on my site as well. 

    Anyways thanks for your help!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard