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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / V3CalendarGetItem Recu...
Power Apps
Answered

V3CalendarGetItem Recurring events

(0) ShareShare
ReportReport
Posted on by

Hi all

 

I am new to this forum and hoping someone can help!

I’ve built an app to create meetings, and now included an option to create recurring events. 
I’d now like to add the ‘recurrence’ info to the calendar view I’ve built, but 

V3CalendarGetItem doesn’t seem to retrieve the data? Any ideas?

Categories:
I have the same question (0)
  • v-siky-msft Profile Picture
    on at

    Hi @P_jones ,

     

    Do you mean you want to display the recurrence info, right?

     

    The recurrence and recurrenceEnd properties for the event from output of 'Office365Outlook.V3CalendarGetItem' action can show the recurrence Type and the end date of the recurrence.  Reference: GraphCalendarEventClientReceive 

    Snipaste_2020-09-02_11-44-49.png

    Hope this helps.

    Sik

     

  • P_jones Profile Picture
    on at

    Hi Yes that's exactly what I want, but I can't seem to retrieve that info. I have: ClearCollect(MyCalendarEvents, Office365Outlook.GetEventsCalendarViewV3(_myCalendar.id, Text(_minDate, UTC), Text(_maxDate, UTC)).value);  but in the table 'MyCalendarEvents' there are no entries for the recurrence info

     

    P_jones_0-1599034484727.png

     

  • v-siky-msft Profile Picture
    on at

    Hi @P_jones ,

     

    That's weird. 

    There should be recurrence, recurrenceEnd and numberOfOccurences columns (recurrence info) in output of GetEventsCalendarViewV3 action.  Please check it again in the collection.

    PS: I just find the Recurrence column in the snapshot you post above. 

    Snipaste_2020-09-02_16-36-14.png

    Sik

  • P_jones Profile Picture
    on at

    it really is weird - the event is definitely a recurring one (i checked it in outlook), but the collection just doesn't collect the data. In fact it puts an very old date in the recurrence end, and tells me it's not recurring at all

     

    P_jones_0-1599037513200.png

     

  • Verified answer
    v-siky-msft Profile Picture
    on at

    Hi @P_jones ,

     

    Yes, I can reproduce your issue. I'm sure, but it could be a bug on GetEventsCalendarViewV3 output.

    Please change to use V4CalendarGetItems to get events details, that can show the recurrence info correctly. 

    Office365Outlook.V4CalendarGetItems("Calendar").value

     

    Sik

  • P_jones Profile Picture
    on at

    Thanks - I'm having more luck with v4calendargetitems, I'm struggling to get the filter to work now.

     

    I can't find any documentation on how to reference and column in the '$filter': clause, so that I can return the items matching the selected date

  • P_jones Profile Picture
    on at

    ok - additionally to this, the V4getcalendaritems seems to only return the first event from a series, so I'm currently trying to figure out to combine the calendarview with calendaritems to achieve what I'm after

  • Verified answer
    P_jones Profile Picture
    on at

    @v-siky-msft thanks for all your help on this today. I've finally managed to sort it I think:

     

    the main gallery collection (_MyCalendarEvents) populates like this:

     

    Set(_minDate, DateAdd(_firstDayOfMonth, -(Weekday(_firstDayOfMonth) - 2 + 1), Days));
    Set(_maxDate, DateAdd(DateAdd(_firstDayOfMonth, -(Weekday(_firstDayOfMonth) - 2 + 1), Days), 40, Days));
    ClearCollect(MyCalendarEvents, Office365Outlook.GetEventsCalendarViewV3(_myCalendar.id, Text(_minDate, UTC), Text(_maxDate, UTC)).value);

     

    Then at the gallery item level I have retrieved the series data like this:

     

    If(Not(IsBlank(ThisItem.seriesMasterId)),
    First(Filter(Office365Outlook.V4CalendarGetItems(_myCalendar.Name,{'$top':500}).value,id=ThisItem.seriesMasterId)).numberOfOccurences
    &" "&
    First(Filter(Office365Outlook.V4CalendarGetItems(_myCalendar.Name,{'$top':500}).value,id=ThisItem.seriesMasterId)).recurrence
    &" occurrences starting on "
    &DateValue(First(Filter(Office365Outlook.GetEventsCalendarViewV3(_myCalendar.Name, Text(_minDate, UTC), Text(_maxDate, UTC)).value,seriesMasterId=ThisItem.seriesMasterId)).start,"en-GB"))

     

    If anyone finds a cleaner way I'd love to hear it, otherwise I hope this helps someone else out!

  • jstraumann Profile Picture
    39 on at

    Where does _myCalendar.id come from?

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 386 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 361

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 339 Super User 2025 Season 2

Last 30 days Overall leaderboard