numberOfOccurrences is zero

Kwiatkowski, Constantin 1 Reputation point
2022-09-02T06:26:27.713+00:00

I create a series appointment (daily, 5 times in row) and get the series appointment event. Why is the field numberOfOccurrences of the rangepattern zero, it supposed to be 5.

Microsoft Graph Calendar API
No comments
{count} votes

3 answers

Sort by: Most helpful
  1. RajeshKumarMSFT 1,936 Reputation points Microsoft Vendor
    2022-09-02T10:25:28.483+00:00

    Hi @Kwiatkowski, Constantin ,

    Hope you are doing well ,

    I have to replicated your issue at my end and i was able to get number Of Occurrences after Setting Range type as "numbered" .

    Use the type property to specify the different types of recurrence Range to get the no of occurrence's.

    237206-image.png

    Refer this Article for More details -https://learn.microsoft.com/en-us/graph/api/resources/recurrencerange?view=graph-rest-1.0

    Hope this helps.
    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

  2. Kwiatkowski, Constantin 1 Reputation point
    2022-09-02T10:31:29.967+00:00

    Sure if I did manual adjustments then I get the number but outlook should do it automatically. So in my opinion that is a bug and should be fixed ASAP. Can you give me a sample of a HTTP GET request so I get the number?